Package jline.api.fj

Class FJ_quorum.StepCDF

java.lang.Object
jline.api.fj.FJ_quorum.StepCDF
Enclosing class:
FJ_quorum

public static final class FJ_quorum.StepCDF extends Object
A discrete step function on a finite, increasing time grid.

Holds parallel arrays t[0..m-1] of abscissae and A[0..m-1] of accumulated values, with A implicitly 0 below t[0] and constant at A[m-1] above t[m-1]. When the values are a probability distribution, A is its CDF; intermediate results of the inclusion-exclusion sum are not distributions and may leave [0, 1].

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double[]
     
    final double[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StepCDF(double[] t, double[] A)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    at(double x)
    Value of the step function at time x.
    boolean
     
    double
    Mean of the distribution described by this CDF.
    times(double c)
    Scale the values, leaving the time grid untouched.
    double
    Variance of the distribution described by this CDF, clamped at zero.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • t

      public final double[] t
    • A

      public final double[] A
  • Constructor Details

    • StepCDF

      public StepCDF(double[] t, double[] A)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • at

      public double at(double x)
      Value of the step function at time x.
    • times

      public FJ_quorum.StepCDF times(double c)
      Scale the values, leaving the time grid untouched.
    • mean

      public double mean()
      Mean of the distribution described by this CDF.
    • variance

      public double variance()
      Variance of the distribution described by this CDF, clamped at zero.