class TimeStatistic extends Statistic
The TimeStatistic
class is used to collect values and compute time-persistent
statistics on them (e.g., Number in Queue).
- See also
staff.unak.is/andy/Year%203%20Simulation/Laboratories/v4manual/internal.htm
- Alphabetic
- By Inheritance
- TimeStatistic
- Statistic
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TimeStatistic(name: String = "p-stat", _lastTime: Double = 0.0, _startTime: Double = 0.0)
- name
the name for this statistic (e.g., 'numberInQueue' or 'tellerQ')
- _lastTime
the time of last observation
- _startTime
the time observation began
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accum(x: Double, t: Double): Unit
Accumulate the next value weighted by its time duration and update accumulators.
Accumulate the next value weighted by its time duration and update accumulators.
- x
the value to accumulate
- t
the time of the observation
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def flaw(method: String, message: String): Unit
- Definition Classes
- Error
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def interval(p: Double = .95): Double
Compute the confidence interval half-width for the given confidence level.
Compute the confidence interval half-width for the given confidence level.
- p
the confidence level
- Definition Classes
- Statistic
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastTime: Double
Return the last time statistics were recorded by this collector.
- def ma: Double
Compute/estimate the mean absolue value (ma), e.g., Mean Absolute Error (MAE).
Compute/estimate the mean absolue value (ma), e.g., Mean Absolute Error (MAE).
- Definition Classes
- Statistic
- def max: Double
Return the maximum value in sample.
Return the maximum value in sample.
- Definition Classes
- Statistic
- var maxX: Double
The maximum sample value
The maximum sample value
- Attributes
- protected
- Definition Classes
- Statistic
- def mean: Double
Compute/estimate the time-weighted mean.
Compute/estimate the time-weighted mean.
- Definition Classes
- TimeStatistic → Statistic
- def min: Double
Return the minimum value in sample.
Return the minimum value in sample.
- Definition Classes
- Statistic
- var minX: Double
The minimum sample value
The minimum sample value
- Attributes
- protected
- Definition Classes
- Statistic
- def ms: Double
Compute/estimate the mean square (ms), e.g., Mean Square Error (MSE).
Compute/estimate the mean square (ms), e.g., Mean Square Error (MSE).
- Definition Classes
- Statistic
- var n: Int
The number of samples
The number of samples
- Attributes
- protected
- Definition Classes
- Statistic
- val name: String
- Definition Classes
- TimeStatistic → Statistic
- def nd: Double
Return the number of samples as a double.
Return the number of samples as a double.
- Definition Classes
- Statistic
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def num: Int
Return the number of samples.
Return the number of samples.
- Definition Classes
- Statistic
- def reset(): Unit
- Definition Classes
- Statistic
- def rms: Double
Compute/estimate the root mean square (rms), e.g., Root Mean Square Error (RMSE).
Compute/estimate the root mean square (rms), e.g., Root Mean Square Error (RMSE).
- Definition Classes
- Statistic
- def show: String
Show the values of this collector's accumulators.
Show the values of this collector's accumulators.
- Definition Classes
- TimeStatistic → Statistic
- def startTime: Double
Return the time observation began.
- def statRow: Array[Any]
Return the summary statistics as a row/Array.
Return the summary statistics as a row/Array.
- Definition Classes
- Statistic
- def stddev: Double
Compute/estimate the sample standard deviation.
Compute/estimate the sample standard deviation.
- Definition Classes
- Statistic
- var sum: Double
Sum of the sample values
Sum of the sample values
- Attributes
- protected
- Definition Classes
- Statistic
- var sumAb: Double
Sum of the sample absolute values
Sum of the sample absolute values
- Attributes
- protected
- Definition Classes
- Statistic
- var sumSq: Double
Sum of the sample values squared
Sum of the sample values squared
- Attributes
- protected
- Definition Classes
- Statistic
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tally(x: Double): Unit
Disable the tally method (it is for sample statistics, not time-persistent statistics.
Disable the tally method (it is for sample statistics, not time-persistent statistics.
- x
the value to tally
- Definition Classes
- TimeStatistic → Statistic
- def toString(): String
Generate a row of statistical results as a string.
Generate a row of statistical results as a string.
- Definition Classes
- Statistic → AnyRef → Any
- def variance: Double
Compute/estimate the time-weighted variance.
Compute/estimate the time-weighted variance.
- Definition Classes
- TimeStatistic → Statistic
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated