Statistic

scalation.mathstat.Statistic
See theStatistic companion object
class Statistic(val name: String, unbiased: Boolean)

The Statistic class is used to collect values and compute sample statistics on them (e.g., waiting time). Contrast with TimeStatistic defined in TimeStatistic.scala.

Value parameters

name

the name for this statistic (e.g., 'waitingTime')

unbiased

whether the estimators are restricted to be unbiased

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete 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

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

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

inline def max: Double

Return the maximum value in sample.

Return the maximum value in sample.

Attributes

def mean: Double

Compute/estimate the sample mean.

Compute/estimate the sample mean.

Attributes

inline def min: Double

Return the minimum value in sample.

Return the minimum value in sample.

Attributes

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

inline def nd: Double

Return the number of samples as a double.

Return the number of samples as a double.

Attributes

inline def num: Int

Return the number of samples.

Return the number of samples.

Attributes

def reset(): Unit

Reset accumulators.

Reset accumulators.

Attributes

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

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

Set accumulators.

Set accumulators.

Attributes

def show: String

Show the values of this collector's accumulators.

Show the values of this collector's accumulators.

Attributes

def statRow: Array[Any]

Return the summary statistics as a row/Array.

Return the summary statistics as a row/Array.

Attributes

def stdev: Double

Compute/estimate the sample standard deviation.

Compute/estimate the sample standard deviation.

Attributes

def tally(x: Double): Unit

Tally the next value and update accumulators.

Tally the next value and update accumulators.

Value parameters

x

the value to tally (e.g., time in sytem)

Attributes

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

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
Any
def variance: Double

Compute/estimate the sample variance. The denominator is one less for unbiased (n-1) vs. maximum likelihood (n) estimators. Also use n for population variance.

Compute/estimate the sample variance. The denominator is one less for unbiased (n-1) vs. maximum likelihood (n) estimators. Also use n for population variance.

Attributes

Concrete fields

val name: String