Class RCensoredLogSplineDistribution
- java.lang.Object
-
- org.apache.commons.math3.distribution.AbstractRealDistribution
-
- org.processmining.plugins.stochasticpetrinet.distribution.RLogSplineDistribution
-
- org.processmining.plugins.stochasticpetrinet.distribution.RCensoredLogSplineDistribution
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.commons.math3.distribution.RealDistribution
public class RCensoredLogSplineDistribution extends RLogSplineDistribution
Wraps the logspline density estimation for data that is randomly right-censored. This happens often, if only the fastest transition in the stochastic Petri net is observed. All competing transitions' samples that lost the race and whose sampled durations are not reconstructable from replay, need to be taken into account as censored data.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.
- Author:
- Andreas Rogge-Solti
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static intcounterstatic counter to avoid name clashes in R-
Fields inherited from class org.processmining.plugins.stochasticpetrinet.distribution.RLogSplineDistribution
engine, method, numericalMean, rName, upperBound, values
-
-
Constructor Summary
Constructors Constructor Description RCensoredLogSplineDistribution()Deprecated.Might cause problems, when integrating the function, as no effective upper bound is given.RCensoredLogSplineDistribution(double maxTraceLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetNumericalVariance()java.lang.StringgetObservedValuesString()java.lang.StringgetRightCensoredValuesString()voidinitWithValues(double[] observedValues, double[] censoredValues)Initializes the log spline density estimation with the observed and right censored values.-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.distribution.RLogSplineDistribution
addValues, cumulativeProbability, density, getNumericalMean, getSupportLowerBound, getSupportUpperBound, getValsString, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, probability, sample, sample
-
-
-
-
Method Detail
-
initWithValues
public void initWithValues(double[] observedValues, double[] censoredValues) throws NonConvergenceExceptionInitializes the log spline density estimation with the observed and right censored values. TODO: delete observations and censored values after fitting process, to increase performance.- Parameters:
observedValues-censoredValues-- Throws:
NonConvergenceException
-
getObservedValuesString
public java.lang.String getObservedValuesString()
-
getRightCensoredValuesString
public java.lang.String getRightCensoredValuesString()
-
getNumericalVariance
public double getNumericalVariance()
- Specified by:
getNumericalVariancein interfaceorg.apache.commons.math3.distribution.RealDistribution- Overrides:
getNumericalVariancein classRLogSplineDistribution
-
-