Package jsl.observers.variable
Class AcrossReplicationRelativePrecisionChecker
- java.lang.Object
-
- jsl.observers.ModelElementObserver
-
- jsl.observers.variable.AcrossReplicationRelativePrecisionChecker
-
- All Implemented Interfaces:
ObserverIfc,GetNameIfc,IdentityIfc
public class AcrossReplicationRelativePrecisionChecker extends ModelElementObserver
-
-
Field Summary
Fields Modifier and Type Field Description protected doublemyConfidenceLevelThe confidence level for within replication half-width checking.protected doublemyDesiredRelativePrecisionThe desired relative precision for stopping-
Fields inherited from class jsl.observers.ModelElementObserver
myName
-
-
Constructor Summary
Constructors Constructor Description AcrossReplicationRelativePrecisionChecker(double desiredPrecision)Creates a new instance of StatisticalObserverAcrossReplicationRelativePrecisionChecker(double desiredPrecision, java.lang.String name)Creates a new instance of StatisticalObserver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterReplication(ModelElement m, java.lang.Object arg)doublegetConfidenceLevel()doublegetDesiredRelativePrecision()Gets the current desired half-widthvoidsetConfidenceLevel(double alpha)Sets the confidence level for the statisticvoidsetDesiredRelativePrecision(double desiredPrecision)Sets the desired relative precision-
Methods inherited from class jsl.observers.ModelElementObserver
afterExperiment, beforeExperiment, beforeReplication, getId, getModelElement, getName, initialize, montecarlo, removedFromModel, replicationEnded, setModelElement, setName, timedUpdate, toString, update, update, warmUp
-
-
-
-
Constructor Detail
-
AcrossReplicationRelativePrecisionChecker
public AcrossReplicationRelativePrecisionChecker(double desiredPrecision)
Creates a new instance of StatisticalObserver- Parameters:
desiredPrecision- desired precision
-
AcrossReplicationRelativePrecisionChecker
public AcrossReplicationRelativePrecisionChecker(double desiredPrecision, java.lang.String name)Creates a new instance of StatisticalObserver- Parameters:
desiredPrecision- the desired precisionname- the name
-
-
Method Detail
-
setConfidenceLevel
public void setConfidenceLevel(double alpha)
Sets the confidence level for the statistic- Parameters:
alpha- must be > 0.0
-
getConfidenceLevel
public double getConfidenceLevel()
- Returns:
- the confidence level
-
setDesiredRelativePrecision
public final void setDesiredRelativePrecision(double desiredPrecision)
Sets the desired relative precision- Parameters:
desiredPrecision- the desired relative precision
-
getDesiredRelativePrecision
public final double getDesiredRelativePrecision()
Gets the current desired half-width- Returns:
- the current desired half-width
-
afterReplication
protected void afterReplication(ModelElement m, java.lang.Object arg)
- Overrides:
afterReplicationin classModelElementObserver
-
-