Ignore:
Timestamp:
08/16/13 10:43:39 (11 years ago)
Author:
sherbold
Message:
  • bugfix for findMax(double[])
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/ArrayTools.java

    r1297 r1298  
    112112        public static int findMax(double[] array) { 
    113113                int maxIndex = -1; 
    114                 double maxElement = Double.MIN_VALUE; 
     114                double maxElement = -Double.MAX_VALUE; 
    115115                if (array != null) { 
    116116                        for (int i = 0; i < array.length; i++) { 
Note: See TracChangeset for help on using the changeset viewer.