TimeStatistic

scalation.mathstat.TimeStatistic
See theTimeStatistic companion object
class TimeStatistic(val name: String, var _lastTime: Double, _startTime: Double) extends Statistic

The TimeStatistic class is used to collect values and compute time-persistent statistics on them (e.g., Number in Queue).

Value parameters

_lastTime

the time of last observation

_startTime

the time observation began

name

the name for this statistic (e.g., 'numberInQueue' or 'tellerQ')

Attributes

See also

staff.unak.is/andy/Year%203%20Simulation/Laboratories/v4manual/internal.htm

Companion
object
Graph
Supertypes
class Statistic
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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.

Value parameters

t

the time of the observation (e.g., event times)

x

the value to accumulate (e.g., system occupancy)

Attributes

def lastTime: Double

Return the last time statistics were recorded by this collector.

Return the last time statistics were recorded by this collector.

Attributes

def maxX_: Double
override def mean: Double

Compute/estimate the time-weighted mean.

Compute/estimate the time-weighted mean.

Attributes

Definition Classes
def minX_: Double
def n_: Int
override def show: String

Show the values of this collector's accumulators.

Show the values of this collector's accumulators.

Attributes

Definition Classes
def startTime: Double

Return the time observation began.

Return the time observation began.

Attributes

def sumAb_: Double
def sumSq_: Double
def sum_: Double
override 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.

Value parameters

x

the value to tally

Attributes

Definition Classes
override def variance: Double

Compute/estimate the time-weighted variance.

Compute/estimate the time-weighted variance.

Attributes

Definition Classes

Inherited methods

def interval(p: Double): Double

Compute the confidence interval half-width for the given confidence level using the t-distribution.

Compute the confidence interval half-width for the given confidence level using the t-distribution.

Value parameters

p

the confidence level

Attributes

Inherited from:
Statistic
def interval_z(p: Double): Double

Compute the confidence interval half-width for the given confidence level using the z-distribution.

Compute the confidence interval half-width for the given confidence level using the z-distribution.

Value parameters

p

the confidence level

Attributes

Inherited from:
Statistic
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).

Attributes

Inherited from:
Statistic
inline def max: Double

Return the maximum value in sample.

Return the maximum value in sample.

Attributes

Inherited from:
Statistic
inline def min: Double

Return the minimum value in sample.

Return the minimum value in sample.

Attributes

Inherited from:
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).

Attributes

Inherited from:
Statistic
inline def nd: Double

Return the number of samples as a double.

Return the number of samples as a double.

Attributes

Inherited from:
Statistic
inline def num: Int

Return the number of samples.

Return the number of samples.

Attributes

Inherited from:
Statistic
def reset(): Unit

Reset accumulators.

Reset accumulators.

Attributes

Inherited from:
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).

Attributes

Inherited from:
Statistic
def set(n_: Int, sum_: Double, sumAb_: Double, sumSq_: Double, minX_: Double, maxX_: Double): Unit

Set accumulators.

Set accumulators.

Attributes

Inherited from:
Statistic
def statRow: Array[Any]

Return the summary statistics as a row/Array.

Return the summary statistics as a row/Array.

Attributes

Inherited from:
Statistic
def stdev: Double

Compute/estimate the sample standard deviation.

Compute/estimate the sample standard deviation.

Attributes

Inherited from:
Statistic
def tallyVec(v: VectorD): Unit

Tally the next vector of values and update accumulators.

Tally the next vector of values and update accumulators.

Value parameters

v

the vector of values to tally (e.g., time in sytem)

Attributes

Inherited from:
Statistic
override def toString: String

Generate a row of statistical results as a string.

Generate a row of statistical results as a string.

Attributes

Definition Classes
Statistic -> Any
Inherited from:
Statistic

Concrete fields

override val name: String