U
- unit of the valueT
- class of the valueW
- weight classpublic final class Persistent<U extends Unit<U>,T extends AbstractDoubleScalarRel<U,T>,W extends Number> extends Object implements DoubleScalarInterface
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
Persistent(U unit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(T value,
W weight)
Adds a value with given weight to the persistent.
|
Persistent<U,T,W> |
copy()
Creates a copy.
|
ConfidenceInterval<T> |
getConfidenceInterval(double alpha) |
ConfidenceInterval<T> |
getConfidenceInterval(double alpha,
IntervalSide side) |
double |
getInUnit() |
T |
getMax() |
T |
getMean() |
T |
getMin() |
long |
getN() |
double |
getSI() |
T |
getStDev() |
T |
getSum() |
double |
getVariance() |
String |
toString() |
public Persistent(U unit)
unit
- unit, does't matter which one, so long it belongs to the right quantitypublic Persistent<U,T,W> copy()
public void addValue(T value, W weight)
value
- the valueweight
- the weightpublic ConfidenceInterval<T> getConfidenceInterval(double alpha)
alpha
- confidence levelpublic ConfidenceInterval<T> getConfidenceInterval(double alpha, IntervalSide side)
alpha
- confidence levelside
- side of confidence intervalpublic T getMin()
public T getMax()
public long getN()
public T getMean()
public double getSI()
getSI
in interface DoubleScalarInterface
public double getInUnit()
getInUnit
in interface DoubleScalarInterface
public double getVariance()
public T getStDev()
public T getSum()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.