Package jsl.observers.variable
Class AcrossReplicationHalfWidthChecker
- java.lang.Object
-
- jsl.observers.ModelElementObserver
-
- jsl.observers.variable.AcrossReplicationHalfWidthChecker
-
- All Implemented Interfaces:
ObserverIfc
,GetNameIfc
,IdentityIfc
public class AcrossReplicationHalfWidthChecker extends ModelElementObserver
-
-
Field Summary
Fields Modifier and Type Field Description protected double
myConfidenceLevel
The confidence level for within replication half-width checking.protected double
myDesiredHalfWidth
The desired half-width for stopping-
Fields inherited from class jsl.observers.ModelElementObserver
myName
-
-
Constructor Summary
Constructors Constructor Description AcrossReplicationHalfWidthChecker(double desiredHW)
Creates a new instance of StatisticalObserverAcrossReplicationHalfWidthChecker(double desiredHW, java.lang.String name)
Creates a new instance of StatisticalObserver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterReplication(ModelElement m, java.lang.Object arg)
double
getConfidenceLevel()
double
getDesiredHalfWidth()
Gets the current desired half-widthvoid
setConfidenceLevel(double level)
Sets the confidence level for the statisticvoid
setDesiredHalfWidth(double desiredHalfWidth)
Sets the desired half-width-
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
-
AcrossReplicationHalfWidthChecker
public AcrossReplicationHalfWidthChecker(double desiredHW)
Creates a new instance of StatisticalObserver- Parameters:
desiredHW
- the desired half-width
-
AcrossReplicationHalfWidthChecker
public AcrossReplicationHalfWidthChecker(double desiredHW, java.lang.String name)
Creates a new instance of StatisticalObserver- Parameters:
desiredHW
- the desired half-widthname
- the name of the checker
-
-
Method Detail
-
setConfidenceLevel
public void setConfidenceLevel(double level)
Sets the confidence level for the statistic- Parameters:
level
- must be > 0.0 and less than 1
-
getConfidenceLevel
public double getConfidenceLevel()
-
setDesiredHalfWidth
public final void setDesiredHalfWidth(double desiredHalfWidth)
Sets the desired half-width- Parameters:
desiredHalfWidth
- the desired half-width
-
getDesiredHalfWidth
public final double getDesiredHalfWidth()
Gets the current desired half-width- Returns:
- the current desired half-width
-
afterReplication
protected void afterReplication(ModelElement m, java.lang.Object arg)
- Overrides:
afterReplication
in classModelElementObserver
-
-