Merge pull request #9 from vjoao/master

Fix Mean of Max wrong calculations
This commit is contained in:
Pablo Cingolani 2016-07-04 17:29:19 -04:00 committed by GitHub
commit 1f421d1b17
1 changed files with 1 additions and 1 deletions

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++;
}
}