AI-FuzzyInference
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
FuzzyInference.pm view on Meta::CPAN
my $obj = bless {} => $class;
$obj->_init;
return $obj;
}
# sub _init() - private method.
#
# no arguments. Initializes the data structures we will need.
# It also defines the default logic operations we might need.
sub _init {
my $self = shift;
$self->{SET} = new AI::FuzzyInference::Set;
$self->{INVARS} = {};
$self->{OUTVARS} = {};
$self->{RULES} = [];
$self->{RESULTS} = {};
out the old computed values before recomputing the new ones. This is
done through a call to the "reset()" method below.
value()
This method returns the value of the supplied output variable. It
only works for output variables (defined using the "outVar()"
method), and only returns useful results after a call to "compute()"
has been made.
reset()
This method resets all the data structures used to compute crisp
values of the output variables. It is implicitly called by the
"compute()" method above.
INSTALLATION
It's all in pure Perl. Just place it somewhere and point your @INC to
it.
But, if you insist, here's the traditional way:
To install this module type the following:
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.428 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )