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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
flaw(method: String, message: String): Unit
- Definition Classes
- Error
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
ma: Double
Compute/estimate the mean absolue value (ma), e.g., Mean Absolute Error (MAE).
-
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), e.g., Mean Square Error (MSE).
-
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
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
num: Int
Return the number of samples.
- def reset(): Unit
-
def
rms: Double
Compute/estimate the root mean square (rms), e.g., Root Mean Square Error (RMSE).
-
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
sumAb: Double
Sum of the sample absolute values
Sum of the sample absolute 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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated