Packages

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

Linear Supertypes
Statistic, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeStatistic
  2. Statistic
  3. Error
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. 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
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def lastTime: Double

    Return the last time statistics were recorded by this collector.

  16. 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
  17. def max: Double

    Return the maximum value in sample.

    Return the maximum value in sample.

    Definition Classes
    Statistic
  18. var maxX: Double

    The maximum sample value

    The maximum sample value

    Attributes
    protected
    Definition Classes
    Statistic
  19. def mean: Double

    Compute/estimate the time-weighted mean.

    Compute/estimate the time-weighted mean.

    Definition Classes
    TimeStatisticStatistic
  20. def min: Double

    Return the minimum value in sample.

    Return the minimum value in sample.

    Definition Classes
    Statistic
  21. var minX: Double

    The minimum sample value

    The minimum sample value

    Attributes
    protected
    Definition Classes
    Statistic
  22. 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
  23. var n: Int

    The number of samples

    The number of samples

    Attributes
    protected
    Definition Classes
    Statistic
  24. val name: String
    Definition Classes
    TimeStatisticStatistic
  25. def nd: Double

    Return the number of samples as a double.

    Return the number of samples as a double.

    Definition Classes
    Statistic
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def num: Int

    Return the number of samples.

    Return the number of samples.

    Definition Classes
    Statistic
  30. def reset(): Unit
    Definition Classes
    Statistic
  31. 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
  32. def show: String

    Show the values of this collector's accumulators.

    Show the values of this collector's accumulators.

    Definition Classes
    TimeStatisticStatistic
  33. def startTime: Double

    Return the time observation began.

  34. def statRow: Array[Any]

    Return the summary statistics as a row/Array.

    Return the summary statistics as a row/Array.

    Definition Classes
    Statistic
  35. def stddev: Double

    Compute/estimate the sample standard deviation.

    Compute/estimate the sample standard deviation.

    Definition Classes
    Statistic
  36. var sum: Double

    Sum of the sample values

    Sum of the sample values

    Attributes
    protected
    Definition Classes
    Statistic
  37. var sumAb: Double

    Sum of the sample absolute values

    Sum of the sample absolute values

    Attributes
    protected
    Definition Classes
    Statistic
  38. var sumSq: Double

    Sum of the sample values squared

    Sum of the sample values squared

    Attributes
    protected
    Definition Classes
    Statistic
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. 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
    TimeStatisticStatistic
  41. 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
  42. def variance: Double

    Compute/estimate the time-weighted variance.

    Compute/estimate the time-weighted variance.

    Definition Classes
    TimeStatisticStatistic
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Statistic

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped