UnivariateStatistic, MathArrays.FunctionMedian, Percentile, SemiVariancepublic abstract class AbstractUnivariateStatistic extends Object implements UnivariateStatistic
UnivariateStatistic interface.| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractUnivariateStatistic() |
Default constructor.
|
protected |
AbstractUnivariateStatistic(AbstractUnivariateStatistic original) |
Copy constructor, creates an identical copy
of the
original. |
| Modifier and Type | Method | Description |
|---|---|---|
abstract UnivariateStatistic |
copy() |
Returns a copy of the statistic with the same internal state.
|
double |
evaluate() |
Returns the result of evaluating the statistic over the stored data.
|
abstract double |
evaluate(double[] values,
int begin,
int length) |
Returns the result of evaluating the statistic over the specified entries
in the input array.
|
double[] |
getData() |
Get a copy of the stored data array.
|
protected double[] |
getDataRef() |
Get a reference to the stored data array.
|
void |
setData(double[] values) |
Set the data array.
|
void |
setData(double[] values,
int begin,
int length) |
Set the data array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateprotected AbstractUnivariateStatistic()
protected AbstractUnivariateStatistic(AbstractUnivariateStatistic original)
original.original - the instance to copyNullArgumentException - if original is nullpublic abstract double evaluate(double[] values,
int begin,
int length)
throws MathIllegalArgumentException
evaluate in interface MathArrays.Functionevaluate in interface UnivariateStatisticvalues - the input arraybegin - the index of the first element to includelength - the number of elements to includeMathIllegalArgumentException - if values is null or the indices are invalidpublic abstract UnivariateStatistic copy()
copy in interface UnivariateStatisticpublic void setData(double[] values)
The stored value is a copy of the parameter array, not the array itself.
values - data array to store (may be null to remove stored data)evaluate()public double[] getData()
protected double[] getDataRef()
public void setData(double[] values,
int begin,
int length)
throws MathIllegalArgumentException
values - data array to storebegin - the index of the first element to includelength - the number of elements to includeMathIllegalArgumentException - if values is null or the indices
are not validevaluate()public double evaluate()
throws MathIllegalArgumentException
The stored array is the one which was set by previous calls to
setData(double[]).
MathIllegalArgumentException - if the stored data array is nullCopyright © 2016–2018 Hipparchus.org. All rights reserved.