Fix Mean of Max method

maxX was being overwritten, changed to accumulator.
This commit is contained in:
Victor Nascimento 2016-06-17 14:59:20 -03:00 committed by GitHub
parent 690b083f90
commit 2a56c6134e
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++;
}
}