Class Persistent<U extends Unit<U>,T extends DoubleScalarRel<U,T>,W extends Number>
java.lang.Object
org.opentrafficsim.kpi.sampling.indicator.Persistent<U,T,W>
- Type Parameters:
U- unit of the valueT- class of the valueW- weight class
@Deprecated
public class Persistent<U extends Unit<U>,T extends DoubleScalarRel<U,T>,W extends Number>
extends Object
Deprecated.
Persistent statistic.
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds a value with given weight to the persistent.Persistent<U,T, W> copy()Deprecated.Creates a copy.getConfidenceInterval(double alpha) Deprecated.Return confidence interval.getConfidenceInterval(double alpha, IntervalSide side) Deprecated.Return confidence interval.getMax()Deprecated.Return maximum value.getMean()Deprecated.Return mean.getMin()Deprecated.Return minimum value.longgetN()Deprecated.Return number of measurements.getStDev()Deprecated.Return standard deviation.getSum()Deprecated.Return sum.doubleDeprecated.Return variance.toString()Deprecated.
-
Constructor Details
-
Persistent
Deprecated.Constructor.- Parameters:
displayUnit- unit used for displaying the persistent values, minimum, maximum, mean, etc.
-
-
Method Details
-
copy
Deprecated.Creates a copy.- Returns:
- a copy
-
addValue
Deprecated.Adds a value with given weight to the persistent.- Parameters:
value- the valueweight- the weight
-
getConfidenceInterval
Deprecated.Return confidence interval.- Parameters:
alpha- confidence level- Returns:
- both-side confidence interval
-
getConfidenceInterval
Deprecated.Return confidence interval.- Parameters:
alpha- confidence levelside- side of confidence interval- Returns:
- confidence interval
-
getMin
Deprecated.Return minimum value.- Returns:
- min value
-
getMax
Deprecated.Return maximum value.- Returns:
- max value
-
getN
public long getN()Deprecated.Return number of measurements.- Returns:
- number of measurments
-
getMean
Deprecated.Return mean.- Returns:
- mean value
-
getVariance
public double getVariance()Deprecated.Return variance.- Returns:
- variance in si
-
getStDev
Deprecated.Return standard deviation.- Returns:
- standard deviation
-
getSum
Deprecated.Return sum.- Returns:
- sum
-
toString
Deprecated.
-