sc.fiji.timelapse

Class Extrema

• public class Extrema
extends Object
• Field Summary

Fields
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 Summary

Constructors
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.
• Field Detail

• tolerance

protected double tolerance
• series

protected double[] series
• extremaCount

protected int extremaCount
• min

protected double min
• max

protected double max
• left

protected int left
• right

protected int right
• x

protected double[] x
• intensities

protected double[] intensities
• Constructor Detail

• Extrema

public Extrema(double[] series,
double tolerance,
boolean findMaxima)
Determine the extrema of a given series.
Parameters:
series - contains the data to process
tolerance - 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 minima
• Extrema

public Extrema(double[] series,
int window,
double minimalSlope,
boolean findMaxima)
Determine the extrema of a given series. The extrema are determined by linear regression in a window left and right of the points and keeping those with at least the regressed slope on either side.
Parameters:
series - contains the data to process
window - window to look in on either side of candidates
minimalSlope - a candidate is only an extremum if the slope exceeds minimalSlope on either side
findMaxima - true for maxima, false for minima
• Method Detail

• getSlope

protected double getSlope(int from,
int to)
• negate

protected void negate(double[] series)
• getX

public double[] getX()
• getIntensities

public double[] getIntensities()
• getMinimumInterval

protected boolean getMinimumInterval(int index)