Package com.fa993.types
Class LocalMaximaOutput
- java.lang.Object
-
- com.fa993.types.LocalMaximaOutput
-
public class LocalMaximaOutput extends Object
Represents the output of a local maxima detection operation.This class encapsulates the indices of the midpoints of local maxima, along with their corresponding left and right edges.
-
-
Constructor Summary
Constructors Constructor Description LocalMaximaOutput(int[] midpoints, int[] leftEdges, int[] rightEdges)Constructs a newLocalMaximaOutputobject with the specified midpoints, left edges, and right edges.
-
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[]getLeftEdges()Returns the left edges of the detected local maxima.int[]getMidpoints()Returns the midpoints of the detected local maxima.int[]getRightEdges()Returns the right edges of the detected local maxima.inthashCode()Computes the hash code for thisLocalMaximaOutputobject.
-
-
-
Constructor Detail
-
LocalMaximaOutput
public LocalMaximaOutput(int[] midpoints, int[] leftEdges, int[] rightEdges)Constructs a newLocalMaximaOutputobject with the specified midpoints, left edges, and right edges.- Parameters:
midpoints- an array of integers representing the midpoints of the local maximaleftEdges- an array of integers representing the left edges of the local maximarightEdges- an array of integers representing the right edges of the local maxima
-
-
Method Detail
-
getMidpoints
public int[] getMidpoints()
Returns the midpoints of the detected local maxima.- Returns:
- an array of integers representing the midpoints
-
getLeftEdges
public int[] getLeftEdges()
Returns the left edges of the detected local maxima.- Returns:
- an array of integers representing the left edges
-
getRightEdges
public int[] getRightEdges()
Returns the right edges of the detected local maxima.- Returns:
- an array of integers representing the right edges
-
equals
public boolean equals(Object o)
Compares this object to another object for equality.Two
LocalMaximaOutputobjects are considered equal if their midpoints, left edges, and right edges arrays are all equal.
-
-