Class StrataInfo


  • public class StrataInfo
    extends Object
    Information needed to represent a survival curve
    Author:
    Scooter Willis
    • Constructor Detail

      • StrataInfo

        public StrataInfo()
    • Method Detail

      • getNearestTime

        public Double getNearestTime​(double timePercentage)
        Need to find the actual time for the nearest time represented as a percentage Would be used to then look up the number at risk at that particular time
        Parameters:
        timePercentage -
        Returns:
      • getNearestAtRisk

        public Double getNearestAtRisk​(double t)
        Selection of number of risk will depend on the precision and rounding of time in the survival table. If you are asking for 12 and entry exists for 11.9999999 then 12 is greater than 11.99999 unless you round.
        Parameters:
        t -
        Returns:
      • f

        public String f​(Double d)
        Parameters:
        d -
        Returns:
      • setStdlow

        public void setStdlow​(ArrayList<Double> stdlow)
        Parameters:
        stdlow - the stdlow to set