Class PersistentStatistic<U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>>
- java.lang.Object
- 
- org.opentrafficsim.kpi.sampling.indicator.PersistentStatistic<U,T>
 
- 
- Type Parameters:
- U- the unit type
- T- type of the value
 
 public class PersistentStatistic<U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>> extends Object Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 18 okt. 2016 
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
 
- 
- 
Constructor SummaryConstructors Constructor Description PersistentStatistic(Persistent<U,T,?> persistent)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfidenceInterval<T>getConfidenceInterval(double alpha)ConfidenceInterval<T>getConfidenceInterval(double alpha, IntervalSide side)TgetMax()TgetMean()TgetMin()longgetN()TgetStDev()TgetSum()doublegetVariance()StringtoString()
 
- 
- 
- 
Constructor Detail- 
PersistentStatisticpublic PersistentStatistic(Persistent<U,T,?> persistent) Constructor.- Parameters:
- persistent- Persistent<?,T,?>; the persistent statistic that gathers the data
 
 
- 
 - 
Method Detail- 
getConfidenceIntervalpublic ConfidenceInterval<T> getConfidenceInterval(double alpha) - Parameters:
- alpha- double; confidence level
- Returns:
- both-side confidence interval
 
 - 
getConfidenceIntervalpublic ConfidenceInterval<T> getConfidenceInterval(double alpha, IntervalSide side) - Parameters:
- alpha- double; confidence level
- side- IntervalSide; side of confidence interval
- Returns:
- confidence interval
 
 - 
getSumpublic T getSum() - Returns:
- sum.
 
 - 
getMinpublic T getMin() - Returns:
- min.
 
 - 
getMaxpublic T getMax() - Returns:
- max.
 
 - 
getMeanpublic T getMean() - Returns:
- mean.
 
 - 
getStDevpublic T getStDev() - Returns:
- stDev.
 
 - 
getVariancepublic double getVariance() - Returns:
- variance.
 
 - 
getNpublic long getN() - Returns:
- n.
 
 
- 
 
-