scalation.stat

TimeStatistic

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

http://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
Learn more about member selection
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
    @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. 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
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  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 max: Double

    Return the maximum value in sample.

    Return the maximum value in sample.

    Definition Classes
    Statistic
  17. var maxX: Double

    The maximum sample value

    The maximum sample value

    Attributes
    protected
    Definition Classes
    Statistic
  18. def mean: Double

    Compute/estimate the time-weighted mean.

    Compute/estimate the time-weighted mean.

    Definition Classes
    TimeStatisticStatistic
  19. def min: Double

    Return the minimum value in sample.

    Return the minimum value in sample.

    Definition Classes
    Statistic
  20. var minX: Double

    The minimum sample value

    The minimum sample value

    Attributes
    protected
    Definition Classes
    Statistic
  21. def ms: Double

    Compute/estimate the mean square (ms).

    Compute/estimate the mean square (ms).

    Definition Classes
    Statistic
  22. var n: Int

    The number of samples

    The number of samples

    Attributes
    protected
    Definition Classes
    Statistic
  23. val name: String

    the name for this statistic (e.

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

    Definition Classes
    TimeStatisticStatistic
  24. def nd: Double

    Return the number of samples as a double.

    Return the number of samples as a double.

    Definition Classes
    Statistic
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def num: Int

    Return the number of samples.

    Return the number of samples.

    Definition Classes
    Statistic
  29. def rms: Double

    Compute/estimate the root mean square (rms).

    Compute/estimate the root mean square (rms).

    Definition Classes
    Statistic
  30. def show: String

    Show the values of this collector's accumulators.

    Show the values of this collector's accumulators.

    Definition Classes
    TimeStatisticStatistic
  31. def startTime: Double

    Return the time observation began.

  32. def statRow: Array[Any]

    Return the summary statistics as a row/Array.

    Return the summary statistics as a row/Array.

    Definition Classes
    Statistic
  33. def stddev: Double

    Compute/estimate the sample standard deviation.

    Compute/estimate the sample standard deviation.

    Definition Classes
    Statistic
  34. var sum: Double

    Sum of the sample values

    Sum of the sample values

    Attributes
    protected
    Definition Classes
    Statistic
  35. var sumSq: Double

    Sum of the sample values squared

    Sum of the sample values squared

    Attributes
    protected
    Definition Classes
    Statistic
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. 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
  38. 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
  39. def variance: Double

    Compute/estimate the time-weighted variance.

    Compute/estimate the time-weighted variance.

    Definition Classes
    TimeStatisticStatistic
  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Statistic

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped