Merge pull request #1 from vjoao/mom-patch

Fix Mean of Max method
This commit is contained in:
Victor Nascimento 2016-06-17 14:59:44 -03:00 committed by GitHub
commit 10bb476cc2

View File

@ -29,7 +29,7 @@ public class DefuzzifierMeanMax extends DefuzzifierContinuous {
// Calculate mean of max
for( int i = 0; i < values.length; i++ ) {
if( values[i] == max ) {
maxX = min + stepSize * i;
maxX += min + stepSize * i;
count++;
}
}