public final class PeakDetector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PeakDetector.PeakDetectionStrategy |
| Modifier and Type | Field and Description |
|---|---|
static PeakDetector.PeakDetectionStrategy |
ABSOLUTEHEIGHT |
static PeakDetector.PeakDetectionStrategy |
LOCALHEIGHTSCORE |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateLocalHeightScore(Histogram histogram,
int index,
int windowSize)
The local height score defines a measure for the height of a peak within
a window.
|
static java.util.List<Peak> |
detect(Histogram histogram) |
static java.util.List<Peak> |
detect(Histogram histogram,
int windowSize,
int thresholdFactor) |
static java.util.List<Peak> |
detectNumberOfPeaks(Histogram histogram,
int numberOfPeaks)
Finds the requested number of (most salient) peaks in the histogram.
|
static Histogram |
newPeakDetection(java.util.List<Peak> peaks)
Create a histogram with peak information.
|
public static final PeakDetector.PeakDetectionStrategy LOCALHEIGHTSCORE
public static final PeakDetector.PeakDetectionStrategy ABSOLUTEHEIGHT
public static Histogram newPeakDetection(java.util.List<Peak> peaks)
peaks - A list With Peakspublic static java.util.List<Peak> detect(Histogram histogram, int windowSize, int thresholdFactor)
public static double calculateLocalHeightScore(Histogram histogram, int index, int windowSize)
histogram - The histogram to calculate the local height score for.index - The index of the bin to calculate the score for.windowSize - The window size used to calculate the mean, standard deviation
and score.public static java.util.List<Peak> detectNumberOfPeaks(Histogram histogram, int numberOfPeaks)
histogram - The histogram.numberOfPeaks - The number of peaks.