Class MultipleRunsConfidenceStopCondition
- java.lang.Object
-
- org.palladiosimulator.simulizar.utils.MultipleRunsConfidenceStopCondition
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simulation.abstractsimengine.SimCondition
,org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
public class MultipleRunsConfidenceStopCondition extends Object implements de.uka.ipd.sdq.simulation.abstractsimengine.SimCondition, org.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
Provides a stop condition which determines when to stop based on the confidence interval around a point estimation (e.g. mean) for multiple runs.
-
-
Constructor Summary
Constructors Constructor Description MultipleRunsConfidenceStopCondition(de.uka.ipd.sdq.statistics.IBatchAlgorithm batchAlgorithm, de.uka.ipd.sdq.statistics.estimation.IConfidenceEstimator estimator, double confidenceLevel, double halfWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check()
de.uka.ipd.sdq.statistics.estimation.ConfidenceInterval
getConfidence()
void
newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue resultTuple)
void
preUnregister()
-
-
-
Constructor Detail
-
MultipleRunsConfidenceStopCondition
public MultipleRunsConfidenceStopCondition(de.uka.ipd.sdq.statistics.IBatchAlgorithm batchAlgorithm, de.uka.ipd.sdq.statistics.estimation.IConfidenceEstimator estimator, double confidenceLevel, double halfWidth)
- Parameters:
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.
-
-
Method Detail
-
check
public boolean check()
- Specified by:
check
in interfacede.uka.ipd.sdq.simulation.abstractsimengine.SimCondition
-
newMeasurementAvailable
public void newMeasurementAvailable(org.palladiosimulator.measurementframework.MeasuringValue resultTuple)
- Specified by:
newMeasurementAvailable
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
-
getConfidence
public de.uka.ipd.sdq.statistics.estimation.ConfidenceInterval getConfidence()
-
preUnregister
public void preUnregister()
- Specified by:
preUnregister
in interfaceorg.palladiosimulator.measurementframework.listener.IMeasurementSourceListener
-
-