Package pulse.math.filters
Class RunningAverage
- java.lang.Object
-
- pulse.math.filters.RunningAverage
-
- All Implemented Interfaces:
Serializable,Filter
- Direct Known Subclasses:
OptimisedRunningAverage
public class RunningAverage extends Object implements Filter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BINSThe binning factor used to build a crude approximation of the heating curve.static intMIN_BINS
-
Constructor Summary
Constructors Constructor Description RunningAverage()RunningAverage(int reductionFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfBins()List<Point2D>process(List<Point2D> points)Constructs a deliberately crude representation of this heating curve by calculating a running average.voidsetNumberOfBins(int no)
-
-
-
Field Detail
-
DEFAULT_BINS
public static final int DEFAULT_BINS
The binning factor used to build a crude approximation of the heating curve. Described in Lunev, A., & Heymer, R. (2020). Review of Scientific Instruments, 91(6), 064902.- See Also:
- Constant Field Values
-
MIN_BINS
public static final int MIN_BINS
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public List<Point2D> process(List<Point2D> points)
Constructs a deliberately crude representation of this heating curve by calculating a running average.This is done using a binning algorithm, which will group the time-temperature data associated with this
The algorithm is described in more detail in Lunev, A., & Heymer, R. (2020). Review of Scientific Instruments, 91(6), 064902.ExperimentalDataincount/reductionFactor - 1bins, calculate the average value for time and temperature within each bin, and collect those values in aList<Point2D>. This is useful to cancel out the effect of signal outliers, e.g. when calculating the half-rise time.
-
getNumberOfBins
public final int getNumberOfBins()
-
setNumberOfBins
public final void setNumberOfBins(int no)
-
-