C# Class AForge.Fuzzy.Rulebase

The class represents a fuzzy rulebase, a set of fuzzy rules used in a Fuzzy Inference System.
Show file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
AddRule ( AForge.Fuzzy.Rule rule ) : void

Adds a fuzzy rule to the database.

ClearRules ( ) : void

Removes all the fuzzy rules of the database.

GetRule ( string ruleName ) : AForge.Fuzzy.Rule

Returns an existing fuzzy rule from the rulebase.

GetRules ( ) : AForge.Fuzzy.Rule[]

Gets all the rules of the rulebase.

Rulebase ( ) : System

Initializes a new instance of the Rulebase class.

Method Details

AddRule() public method

Adds a fuzzy rule to the database.
The fuzzy rule was not initialized. The fuzzy rule name already exists in the rulebase.
public AddRule ( AForge.Fuzzy.Rule rule ) : void
rule AForge.Fuzzy.Rule A fuzzy to add to the database.
return void

ClearRules() public method

Removes all the fuzzy rules of the database.
public ClearRules ( ) : void
return void

GetRule() public method

Returns an existing fuzzy rule from the rulebase.
The rule indicated in ruleName was not found in the rulebase.
public GetRule ( string ruleName ) : AForge.Fuzzy.Rule
ruleName string Name of the fuzzy to retrieve.
return AForge.Fuzzy.Rule

GetRules() public method

Gets all the rules of the rulebase.
public GetRules ( ) : AForge.Fuzzy.Rule[]
return AForge.Fuzzy.Rule[]

Rulebase() public method

Initializes a new instance of the Rulebase class.
public Rulebase ( ) : System
return System