StandardDeviationComputer<N, D> class
abstract
Computes the standard deviation of a set online, by adding each element one by one, without the need to have a List with all the elements.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns
true
if the computation set is empty.no setter - isNotEmpty → bool
-
Alias to ![isEmpty].
no setter
- length → int
-
Returns the length of the computed set. Is incremented by add.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- squaresSum → N
-
The sum of the squares of the computed set. Is incremented by add.
no setter
- squaresSumAsDouble → double
-
Casts squaresSum to double.
no setter
- standardDeviation → D
-
The standard deviation of the current set.
no setter
- standardDeviationAsDouble → double
-
Casts standardDeviation to double.
no setter
- sum → N
-
The sum of the computed set. Is incremented by add.
no setter
- sumAsDouble → double
-
Casts sum to double.
no setter
Methods
-
add(
num n) → StandardDeviationComputer -
Adds a number
n
(num) to the computation. -
addAll(
Iterable< num> ns) → StandardDeviationComputer -
adds all the
ns
elements (num). -
addAllBigInt(
Iterable< BigInt> ns) → StandardDeviationComputer -
adds all the
ns
elements (BigInt). -
addAllDynamicNumber(
Iterable< DynamicNumber> ns) → StandardDeviationComputer -
adds all the
ns
elements (DynamicNumber). -
addBigInt(
BigInt n) → StandardDeviationComputer -
Adds a number
n
(BigInt) to the computation. -
addDynamicNumber(
DynamicNumber n) → StandardDeviationComputer -
Adds a number
n
(DynamicNumber) to the computation. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → StandardDeviationComputer - Resets the computation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited