Package com.fa993.variations
Interface LocalMaxima
-
- All Known Implementing Classes:
LocalMaximaCC
,LocalMaximaJIU
public interface LocalMaxima
Unifying Interface for different LocalMaxima Implementations. This interface provides a standard method to detect local maxima in a 1D signal. Implementing classes are expected to provide their specific algorithm for detecting the indices of local maxima along with their left and right edges.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalMaximaOutput
localMaxima1D(double[] x)
Detects local maxima in a 1D signal.
-
-
-
Method Detail
-
localMaxima1D
LocalMaximaOutput localMaxima1D(double[] x)
Detects local maxima in a 1D signal.- Parameters:
x
- The input signal array.- Returns:
- A
LocalMaximaOutput
object containing: - Indices of detected local maxima (midpoints). - Indices of the left and right edges for each peak. - Throws:
IllegalArgumentException
- If the input signal is null or empty.
-
-