public enum Interpolation extends Enum<Interpolation>
Copyright (c) 2013-2019 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 |
---|---|
Frequency |
interpolateVector(Time time,
FrequencyVector demandVector,
TimeVector timeVector,
boolean sliceStart)
Returns interpolated value from array at given time.
|
boolean |
isLinear() |
boolean |
isStepWise() |
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 nullpublic boolean isStepWise()
public boolean isLinear()
public final Frequency interpolateVector(Time time, FrequencyVector demandVector, TimeVector timeVector, boolean sliceStart)
time
- Time; time to determine the frequency atdemandVector
- FrequencyVector; demand vectortimeVector
- TimeVector; time vectorsliceStart
- boolean; whether the time is at the start of an arbitrary time sliceCopyright © 2014–2019 Delft University of Technology. All rights reserved.