fuzzifier.registry

class axisfuzzy.fuzzifier.registry.FuzzificationStrategyRegistry[source]

Bases: object

get_available_methods(mtype)[source]

获取指定模糊数类型的所有可用方法

Return type:

List[str]

get_available_mtypes()[source]

获取所有支持的模糊数类型

Return type:

List[str]

get_default_method(mtype)[source]

获取指定模糊数类型的默认方法

Return type:

Optional[str]

get_registry_info()[source]

获取注册表的详细信息

Return type:

Dict[str, any]

get_strategy(mtype, method=None)[source]
Return type:

Optional[Type[FuzzificationStrategy]]

list_strategies(mtype=None)[source]
Return type:

List[Tuple[str, str]]

register(mtype, method, strategy_cls, is_default=False)[source]

Register a new fuzzification strategy.

Parameters:
  • mtype (str) – The type of fuzzy number (e.g., ‘qrofn’).

  • method (str) – The name of the strategy (e.g., ‘expert’, ‘hesitation’).

  • strategy_cls (Type[FuzzificationStrategy]) – The class implementing the strategy.

  • is_default (bool) – Whether this should be the default method for the mtype.

Return type:

None

axisfuzzy.fuzzifier.registry.get_registry_fuzzify()[source]

获取全局模糊化注册表实例

Return type:

FuzzificationStrategyRegistry

axisfuzzy.fuzzifier.registry.register_fuzzifier(is_default=False)[source]