public class CondProbabilityStatistic extends Statistic
CondProbabilityStatistic
offers the possibility to obtain a
probability statistic conditioned on a value (conditioner). The calculation
of the bucket widths and the access to the buckets is controlled by a
BucketUtility
.Modifier and Type | Field and Description |
---|---|
protected BucketUtility |
bucketUtility |
protected StdProbabilityStatistic |
overallStatistic |
protected ikr.simlib.statistics.probability.CondProbabilityStatistic.ProbabilityBucket[] |
statistics |
sampleIndex, simNode, traceWriter
Modifier | Constructor and Description |
---|---|
protected |
CondProbabilityStatistic(BucketUtility bucketUtility,
java.lang.String name,
SimNode parentNode)
Creates the probability statistic using a user-defined
BucketUtility as conditioner. |
|
CondProbabilityStatistic(double min,
double max,
int noOfBuckets,
java.lang.String name,
SimNode parentNode)
Creates the probability statistic using a
LinBucketUtility as
conditioner. |
Modifier and Type | Method and Description |
---|---|
void |
computeMeasures(int batchNumber) |
double |
getConfidenceInterval(int index) |
double |
getMean(int index) |
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
void |
update(double condentiator,
int number,
boolean isSpecial) |
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
protected final StdProbabilityStatistic overallStatistic
protected final ikr.simlib.statistics.probability.CondProbabilityStatistic.ProbabilityBucket[] statistics
protected final BucketUtility bucketUtility
protected CondProbabilityStatistic(BucketUtility bucketUtility, java.lang.String name, SimNode parentNode)
BucketUtility
as conditioner.LinBucketUtility
,
LogBucketUtility
public CondProbabilityStatistic(double min, double max, int noOfBuckets, java.lang.String name, SimNode parentNode)
LinBucketUtility
as
conditioner.public void computeMeasures(int batchNumber)
computeMeasures
in class Statistic
public void update(double condentiator, int number, boolean isSpecial)
public void resetStatistic()
Statistic
resetStatistic
in class Statistic
public void resetBatchStatistic()
Statistic
resetBatchStatistic
in class Statistic
public double getMean(int index)
public double getConfidenceInterval(int index)