public final class PersistenceOptimizer
extends java.lang.Object
Constructor and Description |
---|
PersistenceOptimizer(double[] data)
Identifies the local minima of
data based on topological persistence upon construction. |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getMinimaIndices()
Returns an unmodifiable list of the indices of the local minima, sorted first by decreasing topological persistence
and then by increasing index.
|
java.util.List<java.lang.Double> |
getPersistences()
Returns the corresponding unmodifiable list of the topological persistences of the local minima given by
getMinimaIndices() . |
public PersistenceOptimizer(double[] data)
data
based on topological persistence upon construction.
Note that for a region where the data takes constant values that occurs either to the right
of a local maximum or at the beginning of the data, the leftmost point in the region
is considered a local minimum.data
- values of a one-dimensional function evaluated at points in left-to-right orderpublic java.util.List<java.lang.Integer> getMinimaIndices()
public java.util.List<java.lang.Double> getPersistences()
getMinimaIndices()
.