Skip to content

Commit 2c1b975

Browse files
committed
Fixed small min/max issue.
1 parent 2ccd68d commit 2c1b975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/encog/app/analyst/analyze/AnalyzedField.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,9 @@ public final DataField finalizeField() {
205205
// column having exactly (or nearly exactly) the same value. Provide a
206206
// small range around that value so that every value in this column normalizes
207207
// to the midpoint of the desired normalization range, typically 0 or 0.5.
208-
double d = Math.abs(getMax()-getMin());
209208
if( Math.abs(getMax()-getMin())<Encog.DEFAULT_DOUBLE_EQUAL ) {
210209
result.setMin(getMin()-0.0001);
211-
result.setMin(getMin()+0.0001);
210+
result.setMax(getMin()+0.0001);
212211
} else {
213212
result.setMin(getMin());
214213
result.setMax(getMax());

0 commit comments

Comments
 (0)