mirror of
https://github.com/marcin-szczepanski/jFuzzyLogic.git
synced 2024-12-18 16:35:27 +01:00
Merge pull request #9 from vjoao/master
Fix Mean of Max wrong calculations
This commit is contained in:
commit
1f421d1b17
@ -29,7 +29,7 @@ public class DefuzzifierMeanMax extends DefuzzifierContinuous {
|
|||||||
// Calculate mean of max
|
// Calculate mean of max
|
||||||
for( int i = 0; i < values.length; i++ ) {
|
for( int i = 0; i < values.length; i++ ) {
|
||||||
if( values[i] == max ) {
|
if( values[i] == max ) {
|
||||||
maxX = min + stepSize * i;
|
maxX += min + stepSize * i;
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user