Package com.fa993.types
Class PeakProminenceOutput
- java.lang.Object
-
- com.fa993.types.PeakProminenceOutput
-
public class PeakProminenceOutput extends Object
Represents the output of a peak prominence calculation.This class encapsulates the prominence values for peaks, along with their corresponding left and right bases.
-
-
Constructor Summary
Constructors Constructor Description PeakProminenceOutput(double[] prominences, int[] leftBases, int[] rightBases)Constructs a newPeakProminenceOutputobject with the specified prominences, left bases, and right bases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares this object to another object for equality.int[]getLeftBases()Returns the indices of the left bases of the detected peaks.double[]getProminences()Returns the prominence values of the detected peaks.int[]getRightBases()Returns the indices of the right bases of the detected peaks.inthashCode()Computes the hash code for thisPeakProminenceOutputobject.
-
-
-
Constructor Detail
-
PeakProminenceOutput
public PeakProminenceOutput(double[] prominences, int[] leftBases, int[] rightBases)Constructs a newPeakProminenceOutputobject with the specified prominences, left bases, and right bases.- Parameters:
prominences- an array of doubles representing the prominence values of the peaksleftBases- an array of integers representing the left bases of the peaksrightBases- an array of integers representing the right bases of the peaks
-
-
Method Detail
-
getProminences
public double[] getProminences()
Returns the prominence values of the detected peaks.- Returns:
- an array of doubles representing the prominence values
-
getLeftBases
public int[] getLeftBases()
Returns the indices of the left bases of the detected peaks.- Returns:
- an array of integers representing the left bases
-
getRightBases
public int[] getRightBases()
Returns the indices of the right bases of the detected peaks.- Returns:
- an array of integers representing the right bases
-
equals
public boolean equals(Object o)
Compares this object to another object for equality.Two
PeakProminenceOutputobjects are considered equal if their prominences, left bases, and right bases arrays are all equal.
-
-