public class Extrema extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
extremaCount |
protected double[] |
intensities |
protected int |
left |
protected double |
max |
protected double |
min |
protected int |
right |
protected double[] |
series |
protected double |
tolerance |
protected double[] |
x |
Constructor and Description |
---|
Extrema(double[] series,
double tolerance,
boolean findMaxima)
Determine the extrema of a given series.
|
Extrema(double[] series,
int window,
double minimalSlope,
boolean findMaxima)
Determine the extrema of a given series.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFittedMinimum(int middle)
Fit a parabola to the interval [left;right].
|
protected void |
addMinimum(int middle) |
double[] |
getIntensities() |
protected void |
getMinAndMax() |
protected boolean |
getMinimumInterval(int index) |
Plot |
getPlot() |
protected double |
getSlope(int from,
int to) |
double[] |
getX() |
protected void |
negate(double[] series) |
protected double[] |
shorten(double[] array,
int length) |
protected double tolerance
protected double[] series
protected int extremaCount
protected double min
protected double max
protected int left
protected int right
protected double[] x
protected double[] intensities
public Extrema(double[] series, double tolerance, boolean findMaxima)
series
- contains the data to processtolerance
- When determining the x and y of a minimum,
fit a parabola in the intervals around local extrema
where the intensity differs less than tolerance * (max - min)findMaxima
- tells whether we want to find maxima instead of minimapublic Extrema(double[] series, int window, double minimalSlope, boolean findMaxima)
series
- contains the data to processwindow
- window to look in on either side of candidatesminimalSlope
- a candidate is only an extremum if the slope exceeds minimalSlope on either sidefindMaxima
- true for maxima, false for minimaprotected double getSlope(int from, int to)
protected void negate(double[] series)
public double[] getX()
public double[] getIntensities()
protected boolean getMinimumInterval(int index)
protected void addMinimum(int middle)
protected void addFittedMinimum(int middle)
protected double[] shorten(double[] array, int length)
protected void getMinAndMax()
public Plot getPlot()
Copyright © 2015–2021 Fiji. All rights reserved.