Class 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 new PeakWidthsOutput object with the specified widths, width heights, left intersection points, and right intersection points.
    • Constructor Detail

      • PeakWidthsOutput

        public PeakWidthsOutput​(double[] widths,
                                double[] widthHeights,
                                double[] leftIps,
                                double[] rightIps)
        Constructs a new PeakWidthsOutput 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 peaks
        widthHeights - an array of doubles representing the heights at which the widths are measured
        leftIps - an array of doubles representing the left intersection points of the widths
        rightIps - 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.

        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare to
        Returns:
        true if the objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Computes the hash code for this PeakWidthsOutput object.

        The hash code is computed based on the widths, width heights, left intersection points, and right intersection points arrays.

        Overrides:
        hashCode in class Object
        Returns:
        the hash code value