public class TruncatingSimpleStatsTally extends SimpleStatsTally
Modifier and Type | Field and Description |
---|---|
protected boolean |
truncated |
private int |
truncationPoint |
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormat
EOL
Constructor and Description |
---|
TruncatingSimpleStatsTally(int truncationPoint)
Create a TruncatingSimpleStatsTally with given truncation point.
|
TruncatingSimpleStatsTally(java.lang.String propertyName,
int truncationPoint)
Create a TruncatingSimpleStatsTally with given property name and with
given truncation point.
|
Modifier and Type | Method and Description |
---|---|
int |
getTruncationPoint() |
boolean |
isTruncated() |
void |
newObservation(double x)
Update counters (in super class).
|
void |
reset()
Should reset/initialize all relevant counters.
|
void |
setTruncationPoint(int truncationPoint) |
java.lang.String |
toString()
Return a String containing the Name, SamplingType, and the DataLine for
this SampleStatistic.
|
getMean, getSamplingType, getStandardDeviation, getVariance
clone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, propertyChange, setName, setNumberFormat, setSamplingType
public TruncatingSimpleStatsTally(int truncationPoint)
truncationPoint
- Truncation point.public TruncatingSimpleStatsTally(java.lang.String propertyName, int truncationPoint)
propertyName
- Name of property to listen totruncationPoint
- Truncation pointpublic int getTruncationPoint()
public void setTruncationPoint(int truncationPoint)
truncationPoint
- Truncation pointjava.lang.IllegalArgumentException
- if truncationPoint < 0public boolean isTruncated()
public void reset()
SampleStatistics
reset
in interface SampleStatistics
reset
in class SimpleStatsTally
public void newObservation(double x)
newObservation
in interface SampleStatistics
newObservation
in class SimpleStatsTally
x
- New observation valuepublic java.lang.String toString()
AbstractSimpleStats
toString
in class AbstractSimpleStats
AbstractSimpleStats.getDataLine()