Class LinearRateSegment

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double crLL
      the lower limit of the interval on cumulative rate scale
      protected double crUL
      the upper limit of the interval on the cumulative rate scale
      protected double crWidth
      the width of the interval on the cumulative rate scale (crWidth = crUL - crLL)
      protected double rLL
      the rate at the lower limit of the interval
      protected double rUL
      the rate at the upper limit of the interval
      protected double slope
      the slope for the interval
      protected double tLL
      the lower limit of the interval on the time scale
      protected double tUL
      the upper limit of the interval on the time scale
      protected double tWidth
      the width of the interval on the time scale (tWidth = tUL - tLL)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LinearRateSegment​(double cumRateLL, double timeLL, double rateLL, double timeUL, double rateUL)  
    • Field Detail

      • slope

        protected double slope
        the slope for the interval
      • rLL

        protected double rLL
        the rate at the lower limit of the interval
      • rUL

        protected double rUL
        the rate at the upper limit of the interval
      • crWidth

        protected double crWidth
        the width of the interval on the cumulative rate scale (crWidth = crUL - crLL)
      • crLL

        protected double crLL
        the lower limit of the interval on cumulative rate scale
      • crUL

        protected double crUL
        the upper limit of the interval on the cumulative rate scale
      • tWidth

        protected double tWidth
        the width of the interval on the time scale (tWidth = tUL - tLL)
      • tLL

        protected double tLL
        the lower limit of the interval on the time scale
      • tUL

        protected double tUL
        the upper limit of the interval on the time scale
    • Constructor Detail

      • LinearRateSegment

        protected LinearRateSegment​(double cumRateLL,
                                    double timeLL,
                                    double rateLL,
                                    double timeUL,
                                    double rateUL)
    • Method Detail

      • contains

        public boolean contains​(double time)
        Description copied from interface: RateSegmentIfc
        Returns true if the supplied time is within this rate segments time interval
        Specified by:
        contains in interface RateSegmentIfc
        Parameters:
        time - the time to be evaluated
        Returns:
        true if in the segment
      • getSlope

        public double getSlope()
      • getRate

        public double getRate​(double time)
        Description copied from interface: RateSegmentIfc
        Returns the rate for the interval
        Specified by:
        getRate in interface RateSegmentIfc
        Parameters:
        time - the time to evaluate
        Returns:
        the rate at the time
      • getRateAtLowerTimeLimit

        public double getRateAtLowerTimeLimit()
        Description copied from interface: RateSegmentIfc
        The rate at the time that the time interval begins
        Specified by:
        getRateAtLowerTimeLimit in interface RateSegmentIfc
        Returns:
        The rate at the time that the time interval begins
      • getRateAtUpperTimeLimit

        public double getRateAtUpperTimeLimit()
        Description copied from interface: RateSegmentIfc
        The rate at the time that the time interval ends
        Specified by:
        getRateAtUpperTimeLimit in interface RateSegmentIfc
        Returns:
        The rate at the time that the time interval ends
      • getTimeWidth

        public double getTimeWidth()
        Description copied from interface: RateSegmentIfc
        The width of the interval
        Specified by:
        getTimeWidth in interface RateSegmentIfc
        Returns:
        The width of the interval
      • getCumulativeRateLowerLimit

        public double getCumulativeRateLowerLimit()
        Description copied from interface: RateSegmentIfc
        The lower limit on the cumulative rate axis
        Specified by:
        getCumulativeRateLowerLimit in interface RateSegmentIfc
        Returns:
        The lower limit on the cumulative rate axis
      • getCumulativeRateUpperLimit

        public double getCumulativeRateUpperLimit()
        Description copied from interface: RateSegmentIfc
        The upper limit on the cumulative rate axis
        Specified by:
        getCumulativeRateUpperLimit in interface RateSegmentIfc
        Returns:
        The upper limit on the cumulative rate axis
      • getCumulativeRate

        public double getCumulativeRate​(double time)
        Description copied from interface: RateSegmentIfc
        Returns the value of the cumulative rate function for the interval given a value of time within that interval
        Specified by:
        getCumulativeRate in interface RateSegmentIfc
        Parameters:
        time - the time to be evaluated
        Returns:
        the cumulative rate at the given time
      • getInverseCumulativeRate

        public double getInverseCumulativeRate​(double cumRate)
        Description copied from interface: RateSegmentIfc
        Returns the inverse of the cumulative rate function given the interval and a cumulative rate value within that interval. Returns a time
        Specified by:
        getInverseCumulativeRate in interface RateSegmentIfc
        Parameters:
        cumRate - the cumulative rate
        Returns:
        the inverse of the cumulative rate function
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object