|
||||||||||
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 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 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(List<Object> list)
Construct a ListUnivariate with a specific List. |
|
ListUnivariateImpl(List<Object> list,
org.apache.commons.math.util.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(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 |
---|
copy, copy, getGeometricMean, getGeometricMeanImpl, getKurtosis, getKurtosisImpl, getMax, getMaxImpl, getMean, getMeanImpl, getMin, getMinImpl, getPercentile, getPercentileImpl, getSkewness, getSkewnessImpl, getSortedValues, getStandardDeviation, getSum, getSumImpl, getSumsq, getSumsqImpl, getVariance, getVarianceImpl, 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 org.apache.commons.math.util.NumberTransformer transformer
Constructor Detail |
---|
public ListUnivariateImpl()
public ListUnivariateImpl(List<Object> list)
list
- The list that will back this DescriptiveStatisticspublic ListUnivariateImpl(List<Object> 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.DescriptiveStatistics
public double getElement(int index)
getElement
in class org.apache.commons.math.stat.descriptive.DescriptiveStatistics
public long getN()
getN
in interface org.apache.commons.math.stat.descriptive.StatisticalSummary
getN
in class org.apache.commons.math.stat.descriptive.DescriptiveStatistics
public void addValue(double v)
addValue
in class org.apache.commons.math.stat.descriptive.DescriptiveStatistics
public 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 org.apache.commons.math.stat.descriptive.DescriptiveStatistics
public double apply(org.apache.commons.math.stat.descriptive.UnivariateStatistic stat)
apply
in class org.apache.commons.math.stat.descriptive.DescriptiveStatistics
stat
- 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.DescriptiveStatistics
public int getWindowSize()
getWindowSize
in class org.apache.commons.math.stat.descriptive.DescriptiveStatistics
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |