Class SelectThresholdOutput


  • public class SelectThresholdOutput
    extends Object
    Represents the output of a threshold selection process.

    This class encapsulates the results of a threshold-based filtering operation, including which elements are retained and the associated left and right thresholds for each element.

    • Constructor Detail

      • SelectThresholdOutput

        public SelectThresholdOutput​(boolean[] keep,
                                     double[] leftThresholds,
                                     double[] rightThresholds)
        Constructs a new SelectThresholdOutput object with the specified keep array, left thresholds, and right thresholds.
        Parameters:
        keep - a boolean array indicating which elements are retained
        leftThresholds - an array of doubles representing the left thresholds
        rightThresholds - an array of doubles representing the right thresholds
    • Method Detail

      • getKeep

        public boolean[] getKeep()
        Gets the boolean array indicating which elements are retained.
        Returns:
        a boolean array where true indicates the element is retained and false indicates it is not
      • getLeftThresholds

        public double[] getLeftThresholds()
        Gets the array of left thresholds associated with the elements.
        Returns:
        an array of doubles representing the left thresholds
      • getRightThresholds

        public double[] getRightThresholds()
        Gets the array of right thresholds associated with the elements.
        Returns:
        an array of doubles representing the right thresholds