class Statistic extends Error
The Statistic
class is used to collect values and compute sample statistics
on them (e.g., waiting time). Contrast with TimeStatistic
defined below.
- Alphabetic
- By Inheritance
- Statistic
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Statistic(name: String = "stat", unbiased: Boolean = false)
- name
the name for this statistic (e.g., 'waitingTime')
- unbiased
whether the estimators are restricted to be unbiased
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
max: Double
Return the maximum value in sample.
-
var
maxX: Double
The maximum sample value
The maximum sample value
- Attributes
- protected
-
def
mean: Double
Compute/estimate the sample mean.
-
def
min: Double
Return the minimum value in sample.
-
var
minX: Double
The minimum sample value
The minimum sample value
- Attributes
- protected
-
def
ms: Double
Compute/estimate the mean square (ms).
-
var
n: Int
The number of samples
The number of samples
- Attributes
- protected
- val name: String
-
def
nd: Double
Return the number of samples as a double.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
num: Int
Return the number of samples.
- def reset(): Unit
-
def
rms: Double
Compute/estimate the root mean square (rms).
-
def
show: String
Show the values of this collector's accumulators.
-
def
statRow: Array[Any]
Return the summary statistics as a row/Array.
-
def
stddev: Double
Compute/estimate the sample standard deviation.
-
var
sum: Double
Sum of the sample values
Sum of the sample values
- Attributes
- protected
-
var
sumSq: Double
Sum of the sample values squared
Sum of the sample values squared
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tally(x: Double): Unit
Tally the next value and update accumulators.
Tally the next value and update accumulators.
- x
the value to tally
-
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 sample 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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )