Class CMAESOptimizer.DoubleIndex
java.lang.Object
org.apache.commons.math3.optim.nonlinear.scalar.noderiv.CMAESOptimizer.DoubleIndex
- All Implemented Interfaces:
Comparable<CMAESOptimizer.DoubleIndex>
- Enclosing class:
CMAESOptimizer
private static class CMAESOptimizer.DoubleIndex
extends Object
implements Comparable<CMAESOptimizer.DoubleIndex>
Used to sort fitness values. Sorting is always in lower value first
order.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
private final double valueValue to compare. -
index
private final int indexIndex into sorted array.
-
-
Constructor Details
-
DoubleIndex
DoubleIndex(double value, int index) - Parameters:
value
- Value to compare.index
- Index into sorted array.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CMAESOptimizer.DoubleIndex>
-
equals
-
hashCode
public int hashCode()
-