public class ConfidenceStopCondition extends Object implements SimCondition, org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
| Constructor and Description |
|---|
ConfidenceStopCondition(SimuComModel model,
de.uka.ipd.sdq.statistics.IBatchAlgorithm batchAlgorithm,
de.uka.ipd.sdq.statistics.estimation.IConfidenceEstimator estimator,
double confidenceLevel,
double halfWidth) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check()
Checks whether this condition is satisfied.
|
de.uka.ipd.sdq.statistics.estimation.ConfidenceInterval |
getConfidence() |
void |
newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue resultTuple) |
void |
preUnregister() |
public ConfidenceStopCondition(SimuComModel model, de.uka.ipd.sdq.statistics.IBatchAlgorithm batchAlgorithm, de.uka.ipd.sdq.statistics.estimation.IConfidenceEstimator estimator, double confidenceLevel, double halfWidth)
model - batchAlgorithm - confidenceLevel - the confidence level. Use values between 0 and 1.halfWidth - the relative half width of the target confidence interval. Use values between 0
and 1.public boolean check()
SimConditioncheck in interface SimConditionpublic void newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue resultTuple)
newMeasurementAvailable in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListenerpublic de.uka.ipd.sdq.statistics.estimation.ConfidenceInterval getConfidence()
public void preUnregister()
preUnregister in interface org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener