U
- unit of the valueT
- class of the valueW
- weight classpublic final class Persistent<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>,W extends Number> extends Object implements org.djunits.value.vdouble.scalar.DoubleScalarInterface
Copyright (c) 2013-2016 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() |
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
- weight
- public 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 org.djunits.value.vdouble.scalar.DoubleScalarInterface
public double getInUnit()
getInUnit
in interface org.djunits.value.vdouble.scalar.DoubleScalarInterface
public double getVariance()
public T getStDev()
public T getSum()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.