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 Details

    • value

      private final double value
      Value to compare.
    • index

      private final int index
      Index into sorted array.
  • Constructor Details

    • DoubleIndex

      DoubleIndex(double value, int index)
      Parameters:
      value - Value to compare.
      index - Index into sorted array.
  • Method Details