public class CondProbabilityStatistic extends Statistic implements ReflectionConstructable2<SimNode,Parameters>
CondProbabilityStatistic
is derived from
StdProbabilityStatistic
and 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 derived class of
BucketUtility
.
CondProbabilityStatistic
has three
constructors: one using
LinBucketUtility
, one using
LogBucketUtility
and constructor using
default and either LinBucketUtility
or
LogBucketUtility
, depending on the
value set as default for meanBucketSize. Upon construction the
parameters minimum value, maximum value and number of
buckets are required for the first two constructors and are passed to a
derived class of BucketUtility
. As
LogBucketUtility
additionally requires
a mean value for the bucket size, this parameter is also required upon
construction of
CondProbabilityStatistic
using buckets of logarithms growing size. The third
constructor needs no special parameters besides name and owner. getMean(int)
For printing the results it defines the following keywords:
Modifier and Type | Field and Description |
---|---|
protected BucketUtility |
bucketUtility |
protected StdProbabilityStatistic |
overallStatistic |
protected ikr.simlib.statistics.probability.CondProbabilityStatistic.ProbabilityBucket[] |
statistics |
sampleIndex, simNode, traceWriter
CREATE_INSTANCE_METHOD_NAME
Modifier | Constructor and Description |
---|---|
protected |
CondProbabilityStatistic(BucketUtility bucketUtility,
SimNode ownNode)
Creates the probability statistic using a user-defined
BucketUtility as conditioner. |
|
CondProbabilityStatistic(double min,
double max,
int noOfBuckets,
SimNode ownNode)
Creates the probability statistic using a
LinBucketUtility as
conditioner. |
Modifier and Type | Method and Description |
---|---|
void |
computeMeasures(int batchNumber) |
static CondProbabilityStatistic |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
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, SimNode ownNode)
BucketUtility
as conditioner.LinBucketUtility
,
LogBucketUtility
public CondProbabilityStatistic(double min, double max, int noOfBuckets, SimNode ownNode)
LinBucketUtility
as
conditioner.public static CondProbabilityStatistic createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
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)