Package jline.api.fj
Class FJ_quorum.StepCDF
java.lang.Object
jline.api.fj.FJ_quorum.StepCDF
- Enclosing class:
FJ_quorum
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleat(double x) Value of the step function at time x.booleanisEmpty()doublemean()Mean of the distribution described by this CDF.times(double c) Scale the values, leaving the time grid untouched.doublevariance()Variance of the distribution described by this CDF, clamped at zero.
-
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
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.
-