public class CondMeanStatistic extends Statistic
CondMeanStatistic
offers the possibility to obtain a mean value
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 StdSampleStatistic |
overallStatistic |
protected ikr.simlib.statistics.sample.CondMeanStatistic.ConditionalBucket[] |
statistics |
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
CondMeanStatistic(double min,
double max,
int noOfBuckets,
java.lang.String name,
SimNode parentNode)
Creates the mean value statistic using a
LinBucketUtility as
conditioner. |
CondMeanStatistic(java.lang.String name,
SimNode parentNode,
BucketUtility bucketUtility)
Creates the mean value statistic using a user-defined
BucketUtility as conditioner. |
Modifier and Type | Method and Description |
---|---|
void |
computeMeasures(int batchNumber) |
double |
getCoefficient(int index) |
double |
getCoefficientConfidenceInterval(int index) |
double |
getDeviation(int index) |
double |
getDeviationConfidenceInterval(int index) |
double |
getMaximum(int index) |
double |
getMean(int index) |
double |
getMeanConfidenceInterval(int index) |
double |
getMinimum(int index) |
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
void |
update(double condentiator,
double sample) |
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
protected final StdSampleStatistic overallStatistic
protected final ikr.simlib.statistics.sample.CondMeanStatistic.ConditionalBucket[] statistics
protected final BucketUtility bucketUtility
public CondMeanStatistic(java.lang.String name, SimNode parentNode, BucketUtility bucketUtility)
BucketUtility
as conditioner.LinBucketUtility
,
LogBucketUtility
public CondMeanStatistic(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 resetBatchStatistic()
Statistic
resetBatchStatistic
in class Statistic
public void resetStatistic()
Statistic
resetStatistic
in class Statistic
public void update(double condentiator, double sample)
public double getMean(int index)
public double getDeviation(int index)
public double getCoefficient(int index)
public double getMeanConfidenceInterval(int index)
public double getDeviationConfidenceInterval(int index)
public double getCoefficientConfidenceInterval(int index)
public double getMaximum(int index)
public double getMinimum(int index)