AI-FuzzyInference
    
    
  
  
  
view release on metacpan or search on metacpan
FuzzyInference.pm view on Meta::CPAN
package AI::FuzzyInference;
use strict;
use vars qw/$VERSION/;
$VERSION = 0.05;
use AI::FuzzyInference::Set;
############################################
#
# First some global vars.
#
############################################
# this hash defines the possible interpretations of the
# standard fuzzy logic operations.
my %_operations = (
		   '&' => {
		       min     => sub { (sort {$a <=> $b} @_)[0] },
		       product => sub { my $p = 1; $p *= $_ for @_; $p },
		       default => 'min',
( run in 0.902 second using v1.01-cache-2.11-cpan-c333fce770f )