|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.stat.descriptive.DescriptiveStatistics
org.apache.commons.math3.stat.descriptive.ListUnivariateImpl
public class ListUnivariateImpl
| Field Summary | |
|---|---|
protected List<Object> |
list
Holds a reference to a list - GENERICs are going to make our lives easier here as we could only accept List |
protected NumberTransformer |
transformer
Number Transformer maps Objects to Number for us. |
| Fields inherited from class org.apache.commons.math3.stat.descriptive.DescriptiveStatistics |
|---|
INFINITE_WINDOW, windowSize |
| Constructor Summary | |
|---|---|
ListUnivariateImpl()
No argument Constructor |
|
ListUnivariateImpl(List<Object> list)
Construct a ListUnivariate with a specific List. |
|
ListUnivariateImpl(List<Object> list,
NumberTransformer transformer)
Construct a ListUnivariate with a specific List. |
|
| Method Summary | |
|---|---|
void |
addObject(Object o)
Adds an object to this list. |
void |
addValue(double v)
|
double |
apply(UnivariateStatistic stat)
Apply the given statistic to this univariate collection. |
void |
clear()
Clears all statistics. |
double |
getElement(int index)
|
long |
getN()
|
NumberTransformer |
getTransformer()
Access the number transformer. |
double[] |
getValues()
|
void |
setTransformer(NumberTransformer transformer)
Modify the number transformer. |
void |
setWindowSize(int windowSize)
|
| Methods inherited from class org.apache.commons.math3.stat.descriptive.DescriptiveStatistics |
|---|
copy, copy, getGeometricMean, getGeometricMeanImpl, getKurtosis, getKurtosisImpl, getMax, getMaxImpl, getMean, getMeanImpl, getMin, getMinImpl, getPercentile, getPercentileImpl, getPopulationVariance, getSkewness, getSkewnessImpl, getSortedValues, getStandardDeviation, getSum, getSumImpl, getSumsq, getSumsqImpl, getVariance, getVarianceImpl, getWindowSize, removeMostRecentValue, replaceMostRecentValue, setGeometricMeanImpl, setKurtosisImpl, setMaxImpl, setMeanImpl, setMinImpl, setPercentileImpl, setSkewnessImpl, setSumImpl, setSumsqImpl, setVarianceImpl, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<Object> list
protected NumberTransformer transformer
| Constructor Detail |
|---|
public ListUnivariateImpl()
public ListUnivariateImpl(List<Object> list)
list - The list that will back this DescriptiveStatistics
public ListUnivariateImpl(List<Object> list,
NumberTransformer transformer)
list - The list that will back this DescriptiveStatisticstransformer - the number transformer used to convert the list items.| Method Detail |
|---|
public double[] getValues()
getValues in class DescriptiveStatisticspublic double getElement(int index)
getElement in class DescriptiveStatisticspublic long getN()
getN in interface StatisticalSummarygetN in class DescriptiveStatisticspublic void addValue(double v)
addValue in class DescriptiveStatisticspublic void addObject(Object o)
o - Object to add to the listpublic void clear()
N.B.: This method has the side effect of clearing the underlying list.
clear in class DescriptiveStatisticspublic double apply(UnivariateStatistic stat)
apply in class DescriptiveStatisticsstat - the statistic to apply
public NumberTransformer getTransformer()
public void setTransformer(NumberTransformer transformer)
transformer - the new number transformer.public void setWindowSize(int windowSize)
setWindowSize in class DescriptiveStatistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||