Package com.fa993.types
Class FindPeaksOutput
- java.lang.Object
-
- com.fa993.types.FindPeaksOutput
-
public class FindPeaksOutput extends Object
Represents the output of a peak-finding operation.This class encapsulates the indices of the midpoints of peaks and additional properties associated with the peaks.
Properties may include various metrics or attributes related to the identified peaks, stored in a map structure with string keys and object values.
-
-
Constructor Summary
Constructors Constructor Description FindPeaksOutput(int[] midpoints, Map<String,Object> properties)Constructs a newFindPeaksOutputobject with the specified midpoints and properties.
-
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[]getMidpoints()Returns the indices of the midpoints of detected peaks.Map<String,Object>getProperties()Returns the additional properties associated with the peaks.inthashCode()Computes the hash code for thisFindPeaksOutputobject.StringtoString()Returns a string representation of thisFindPeaksOutputobject.
-
-
-
Constructor Detail
-
FindPeaksOutput
public FindPeaksOutput(int[] midpoints, Map<String,Object> properties)Constructs a newFindPeaksOutputobject with the specified midpoints and properties.- Parameters:
midpoints- an array of integers representing the midpoints of the peaksproperties- a map containing additional properties of the peaks
-
-
Method Detail
-
getMidpoints
public int[] getMidpoints()
Returns the indices of the midpoints of detected peaks.- Returns:
- an array of integers representing the midpoints
-
getProperties
public Map<String,Object> getProperties()
Returns the additional properties associated with the peaks.- Returns:
- a map containing properties of the peaks
-
equals
public boolean equals(Object o)
Compares this object to another object for equality.Two
FindPeaksOutputobjects are considered equal if:- Both have the same midpoints
- Both have properties maps with the same keys and values
- Array values in the properties maps are compared deeply
Note: Two empty arrays are considered equal regardless of their types.
-
hashCode
public int hashCode()
Computes the hash code for thisFindPeaksOutputobject.The hash code is computed using the midpoints array and the properties map.
-
-