public abstract class AbstractStorelessUnivariateStatistic extends Object implements StorelessUnivariateStatistic
StorelessUnivariateStatistic
interface.
Provides default hashCode()
and equals(Object)
implementations.
Constructor and Description |
---|
AbstractStorelessUnivariateStatistic() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Clears the internal state of the Statistic
|
abstract StorelessUnivariateStatistic |
copy()
Returns a copy of the statistic with the same internal state.
|
boolean |
equals(Object object)
Returns true iff
object is the same type of
StorelessUnivariateStatistic (the object's class equals this
instance) returning the same values as this for getResult()
and getN() . |
abstract double |
getResult()
Returns the current value of the Statistic.
|
int |
hashCode()
Returns hash code based on getResult() and getN().
|
abstract void |
increment(double d)
Updates the internal state of the statistic to reflect the addition of the new value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, evaluate, getN, incrementAll, incrementAll
evaluate
andThen
public AbstractStorelessUnivariateStatistic()
public abstract StorelessUnivariateStatistic copy()
copy
in interface StorelessUnivariateStatistic
copy
in interface UnivariateStatistic
public abstract void clear()
clear
in interface StorelessUnivariateStatistic
public abstract double getResult()
getResult
in interface StorelessUnivariateStatistic
Double.NaN
if it
has been cleared or just instantiated.public abstract void increment(double d)
increment
in interface StorelessUnivariateStatistic
d
- the new value.public boolean equals(Object object)
object
is the same type of
StorelessUnivariateStatistic
(the object's class equals this
instance) returning the same values as this for getResult()
and getN()
.public int hashCode()
Copyright © 2016-2022 CS GROUP. All rights reserved.