|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.stat.descriptive.DescriptiveStatistics
org.apache.commons.math.stat.descriptive.ListUnivariateImpl
public class ListUnivariateImpl
| Field Summary | |
|---|---|
protected java.util.List |
list
Holds a reference to a list - GENERICs are going to make our lives easier here as we could only accept List |
protected org.apache.commons.math.util.NumberTransformer |
transformer
Number Transformer maps Objects to Number for us. |
| Fields inherited from class org.apache.commons.math.stat.descriptive.DescriptiveStatistics |
|---|
eDA, INFINITE_WINDOW, windowSize |
| Constructor Summary | |
|---|---|
ListUnivariateImpl()
No argument Constructor |
|
ListUnivariateImpl(java.util.List list)
Construct a ListUnivariate with a specific List. |
|
ListUnivariateImpl(java.util.List list,
org.apache.commons.math.util.NumberTransformer transformer)
Construct a ListUnivariate with a specific List. |
|
| Method Summary | |
|---|---|
void |
addObject(java.lang.Object o)
Adds an object to this list. |
void |
addValue(double v)
|
double |
apply(org.apache.commons.math.stat.descriptive.UnivariateStatistic stat)
Apply the given statistic to this univariate collection. |
void |
clear()
Clears all statistics. |
double |
getElement(int index)
|
long |
getN()
|
org.apache.commons.math.util.NumberTransformer |
getTransformer()
Access the number transformer. |
double[] |
getValues()
|
int |
getWindowSize()
|
void |
setTransformer(org.apache.commons.math.util.NumberTransformer transformer)
Modify the number transformer. |
void |
setWindowSize(int windowSize)
|
| Methods inherited from class org.apache.commons.math.stat.descriptive.DescriptiveStatistics |
|---|
getGeometricMean, getGeometricMeanImpl, getKurtosis, getKurtosisImpl, getMax, getMaxImpl, getMean, getMeanImpl, getMin, getMinImpl, getPercentile, getPercentileImpl, getSkewness, getSkewnessImpl, getSortedValues, getStandardDeviation, getSum, getSumImpl, getSumsq, getSumsqImpl, getVariance, getVarianceImpl, newInstance, newInstance, 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 java.util.List list
protected org.apache.commons.math.util.NumberTransformer transformer
| Constructor Detail |
|---|
public ListUnivariateImpl()
public ListUnivariateImpl(java.util.List list)
list - The list that will back this DescriptiveStatistics
public ListUnivariateImpl(java.util.List list,
org.apache.commons.math.util.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 org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.getValues()public double getElement(int index)
getElement in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.getElement(int)public long getN()
getN in interface org.apache.commons.math.stat.descriptive.StatisticalSummarygetN in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.getN()public void addValue(double v)
addValue in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.addValue(double)public void addObject(java.lang.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 org.apache.commons.math.stat.descriptive.DescriptiveStatisticspublic double apply(org.apache.commons.math.stat.descriptive.UnivariateStatistic stat)
apply in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsstat - the statistic to apply
public org.apache.commons.math.util.NumberTransformer getTransformer()
public void setTransformer(org.apache.commons.math.util.NumberTransformer transformer)
transformer - the new number transformer.public void setWindowSize(int windowSize)
setWindowSize in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.setWindowSize(int)public int getWindowSize()
getWindowSize in class org.apache.commons.math.stat.descriptive.DescriptiveStatisticsDescriptiveStatistics.getWindowSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||