Package com.fa993.types
Class PeakWidthsOutput
- java.lang.Object
-
- com.fa993.types.PeakWidthsOutput
-
public class PeakWidthsOutput extends Object
Represents the output of peak width calculations.This class encapsulates the widths of peaks, the corresponding heights at which the widths are measured, and the left and right intersection points (IPs) of the widths on the curve.
-
-
Constructor Summary
Constructors Constructor Description PeakWidthsOutput(double[] widths, double[] widthHeights, double[] leftIps, double[] rightIps)
Constructs a newPeakWidthsOutput
object with the specified widths, width heights, left intersection points, and right intersection points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares this object to another object for equality.double[]
getLeftIps()
Gets the array of left intersection points (IPs) of the widths on the curve.double[]
getRightIps()
Gets the array of right intersection points (IPs) of the widths on the curve.double[]
getWidthHeights()
Gets the array of heights at which the widths of the peaks are measured.double[]
getWidths()
Gets the array of widths of the detected peaks.int
hashCode()
Computes the hash code for thisPeakWidthsOutput
object.
-
-
-
Constructor Detail
-
PeakWidthsOutput
public PeakWidthsOutput(double[] widths, double[] widthHeights, double[] leftIps, double[] rightIps)
Constructs a newPeakWidthsOutput
object with the specified widths, width heights, left intersection points, and right intersection points.- Parameters:
widths
- an array of doubles representing the widths of the peakswidthHeights
- an array of doubles representing the heights at which the widths are measuredleftIps
- an array of doubles representing the left intersection points of the widthsrightIps
- an array of doubles representing the right intersection points of the widths
-
-
Method Detail
-
getWidths
public double[] getWidths()
Gets the array of widths of the detected peaks.- Returns:
- an array of doubles representing the widths of the peaks
-
getWidthHeights
public double[] getWidthHeights()
Gets the array of heights at which the widths of the peaks are measured.- Returns:
- an array of doubles representing the heights at which the widths are measured
-
getLeftIps
public double[] getLeftIps()
Gets the array of left intersection points (IPs) of the widths on the curve.- Returns:
- an array of doubles representing the left intersection points of the widths
-
getRightIps
public double[] getRightIps()
Gets the array of right intersection points (IPs) of the widths on the curve.- Returns:
- an array of doubles representing the right intersection points of the widths
-
equals
public boolean equals(Object o)
Compares this object to another object for equality.Two
PeakWidthsOutput
objects are considered equal if their widths, width heights, left intersection points, and right intersection points arrays are all equal.
-
-