public enum Interpolation extends Enum<Interpolation>
 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.
 
| 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.Time time0,
         org.djunits.value.vdouble.scalar.Frequency frequency1,
         org.djunits.value.vdouble.scalar.Time 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.Time time0,
           org.djunits.value.vdouble.scalar.Frequency frequency1,
           org.djunits.value.vdouble.scalar.Time time1,
           org.djunits.value.vdouble.scalar.Time time)
Interpolate between given frequencies. 
 | 
org.djunits.value.vdouble.scalar.Frequency | 
interpolateVector(org.djunits.value.vdouble.scalar.Time time,
                 org.djunits.value.vdouble.vector.FrequencyVector demandVector,
                 org.djunits.value.vdouble.vector.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 nullabstract org.djunits.value.vdouble.scalar.Frequency interpolate(org.djunits.value.vdouble.scalar.Frequency frequency0,
                                                                org.djunits.value.vdouble.scalar.Time time0,
                                                                org.djunits.value.vdouble.scalar.Frequency frequency1,
                                                                org.djunits.value.vdouble.scalar.Time time1,
                                                                org.djunits.value.vdouble.scalar.Time time)
frequency0 - frequency at time0time0 - time of frequency0 (≤ time)frequency1 - frequency at time1time1 - time of frequency1 (> time)time - time0 ≤ time < time1abstract int integrate(org.djunits.value.vdouble.scalar.Frequency frequency0,
                       org.djunits.value.vdouble.scalar.Time time0,
                       org.djunits.value.vdouble.scalar.Frequency frequency1,
                       org.djunits.value.vdouble.scalar.Time time1)
frequency0 - frequency at time0time0 - time of frequency0 (≤ time)frequency1 - frequency at time1time1 - time of frequency1 (> time)public boolean isStepWise()
public boolean isLinear()
public final org.djunits.value.vdouble.scalar.Frequency interpolateVector(org.djunits.value.vdouble.scalar.Time time,
                                                                          org.djunits.value.vdouble.vector.FrequencyVector demandVector,
                                                                          org.djunits.value.vdouble.vector.TimeVector timeVector,
                                                                          boolean sliceStart)
time - Time; time to determine the frequency atdemandVector - FrequencyVevtor; demand vectortimeVector - DurationVector; time vectorsliceStart - boolean; whether the time is at the start of an arbitrary time sliceCopyright © 2014–2018 Delft University of Technology. All rights reserved.