AI::FuzzyInferenceAI::FuzzyInference is a Perl module to implement a Fuzzy Inference System. | |
Download |
AI::FuzzyInference Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Ala Qumsieh
- Publisher web site:
- http://search.cpan.org/~aqumsieh/Tk-BarberPole-0.01/BarberPole.pm
AI::FuzzyInference Tags
AI::FuzzyInference Description
AI::FuzzyInference is a Perl module to implement a Fuzzy Inference System. AI::FuzzyInference is a Perl module to implement a Fuzzy Inference System.SYNOPSYS use AI::FuzzyInference; my $s = new AI::FuzzyInference; $s->inVar('service', 0, 10, poor => , good => , excellent => , amazing => , ); $s->inVar('food', 0, 10, poor => , good => , excellent => , amazing => , ); $s->outVar('tip', 5, 30, poor => , good => , excellent => , amazing => , ); $s->addRule( 'service=poor & food=poor' => 'tip=poor', 'service=good & food=poor' => 'tip=poor', 'service=excellent & food=poor' => 'tip=good', 'service=amazing & food=poor' => 'tip=good', 'service=poor & food=good' => 'tip=poor', 'service=good & food=good' => 'tip=good', 'service=excellent & food=good' => 'tip=good', 'service=amazing & food=good' => 'tip=excellent', 'service=poor & food=excellent' => 'tip=good', 'service=good & food=excellent' => 'tip=excellent', 'service=excellent & food=excellent' => 'tip=excellent', 'service=amazing & food=excellent' => 'tip=amazing', 'service=poor & food=amazing' => 'tip=good', 'service=good & food=amazing' => 'tip=excellent', 'service=excellent & food=amazing' => 'tip=amazing', 'service=amazing & food=amazing' => 'tip=amazing', ); $s->compute(service => 2, food => 7); Requirements: · Perl
AI::FuzzyInference Related Software