public class RCensoredLogSplineDistribution extends RLogSplineDistribution
uses the oldlogspline function described in: Kooperberg, Charles, and Charles J. Stone. "Logspline density estimation for censored data." Journal of Computational and Graphical Statistics 1.4 (1992): 301-328.
Modifier and Type | Field and Description |
---|---|
protected static int |
counter
static counter to avoid name clashes in R
|
engine, method, numericalMean, rName, upperBound, values
Constructor and Description |
---|
RCensoredLogSplineDistribution()
Deprecated.
Might cause problems, when integrating the function, as no effective upper bound is given.
|
RCensoredLogSplineDistribution(double maxTraceLength) |
Modifier and Type | Method and Description |
---|---|
double |
getNumericalVariance() |
java.lang.String |
getObservedValuesString() |
java.lang.String |
getRightCensoredValuesString() |
void |
initWithValues(double[] observedValues,
double[] censoredValues)
Initializes the log spline density estimation with the observed and right censored values.
|
addValues, cumulativeProbability, density, getNumericalMean, getSupportLowerBound, getSupportUpperBound, getValsString, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, probability, sample, sample
public RCensoredLogSplineDistribution()
public RCensoredLogSplineDistribution(double maxTraceLength)
public void initWithValues(double[] observedValues, double[] censoredValues) throws NonConvergenceException
observedValues
- censoredValues
- NonConvergenceException
public java.lang.String getObservedValuesString()
public java.lang.String getRightCensoredValuesString()
public double getNumericalVariance()
getNumericalVariance
in interface org.apache.commons.math3.distribution.RealDistribution
getNumericalVariance
in class RLogSplineDistribution