public enum Interpolation extends Enum<Interpolation>
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.
Enum Constant and Description |
---|
LINEAR
Linear interpolation of demand.
|
STEPWISE
Stepwise interpolation of demand.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract int |
integrate(org.djunits.value.vdouble.scalar.Frequency frequency0,
org.djunits.value.vdouble.scalar.Duration time0,
org.djunits.value.vdouble.scalar.Frequency frequency1,
org.djunits.value.vdouble.scalar.Duration time1)
Integrates to the number of trips in given period.
|
(package private) abstract org.djunits.value.vdouble.scalar.Frequency |
interpolate(org.djunits.value.vdouble.scalar.Frequency frequency0,
org.djunits.value.vdouble.scalar.Duration time0,
org.djunits.value.vdouble.scalar.Frequency frequency1,
org.djunits.value.vdouble.scalar.Duration time1,
org.djunits.value.vdouble.scalar.Duration time)
Interpolate between given frequencies.
|
static Interpolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Interpolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interpolation STEPWISE
public static final Interpolation LINEAR
public static Interpolation[] values()
for (Interpolation c : Interpolation.values()) System.out.println(c);
public static Interpolation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullabstract org.djunits.value.vdouble.scalar.Frequency interpolate(org.djunits.value.vdouble.scalar.Frequency frequency0, org.djunits.value.vdouble.scalar.Duration time0, org.djunits.value.vdouble.scalar.Frequency frequency1, org.djunits.value.vdouble.scalar.Duration time1, org.djunits.value.vdouble.scalar.Duration time)
frequency0
- frequency at time0
time0
- time of frequency0
(≤ time
)frequency1
- frequency at time1
time1
- time of frequency1
(> time
)time
- time0
≤ time
< time1
abstract int integrate(org.djunits.value.vdouble.scalar.Frequency frequency0, org.djunits.value.vdouble.scalar.Duration time0, org.djunits.value.vdouble.scalar.Frequency frequency1, org.djunits.value.vdouble.scalar.Duration time1)
frequency0
- frequency at time0
time0
- time of frequency0
(≤ time
)frequency1
- frequency at time1
time1
- time of frequency1
(> time
)Copyright © 2014–2016 Delft University of Technology. All rights reserved.