Class PersistentStatistic<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.base.DoubleScalarRel<U,T>>
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.PersistentStatistic<U,T>
- Type Parameters:
U
- the unit typeT
- type of the value
public class PersistentStatistic<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.base.DoubleScalarRel<U,T>>
extends Object
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConfidenceInterval
(double alpha) getConfidenceInterval
(double alpha, IntervalSide side) getMax()
getMean()
getMin()
long
getN()
getStDev()
getSum()
double
final String
toString()
-
Constructor Details
-
PersistentStatistic
Constructor.- Parameters:
persistent
- Persistent<?,T,?>; the persistent statistic that gathers the data
-
-
Method Details
-
getConfidenceInterval
- Parameters:
alpha
- double; confidence level- Returns:
- both-side confidence interval
-
getConfidenceInterval
- Parameters:
alpha
- double; confidence levelside
- IntervalSide; side of confidence interval- Returns:
- confidence interval
-
getSum
- Returns:
- sum.
-
getMin
- Returns:
- min.
-
getMax
- Returns:
- max.
-
getMean
- Returns:
- mean.
-
getStDev
- Returns:
- stDev.
-
getVariance
public double getVariance()- Returns:
- variance.
-
getN
public long getN()- Returns:
- n.
-
toString
-