public class TypedEGTF extends EGTF
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.
| Constructor and Description |
|---|
TypedEGTF()
Constructor using cCong = -18km/h, cFree = 80km/h, deltaV = 10km/h and vc = 80km/h.
|
TypedEGTF(Speed cCong,
Speed cFree,
Speed deltaV,
Speed vc)
Constructor defining global settings.
|
TypedEGTF(Speed cCong,
Speed cFree,
Speed deltaV,
Speed vc,
Length sigma,
Duration tau,
Length xMax,
Duration tMax)
Convenience constructor that also sets a specified kernel.
|
| Modifier and Type | Method and Description |
|---|---|
<U extends Unit<U>,Z extends Scalar<U>> |
addGridData(DataStream<Z> dataStream,
LengthVector location,
DurationVector time,
DoubleMatrixInterface<U> values)
Adds grid data.
|
<U extends Unit<U>,Z extends Scalar<U>> |
addGridData(Quantity<Z,?> quantity,
LengthVector location,
DurationVector time,
DoubleMatrixInterface<U> values)
Adds grid data.
|
<U extends Unit<U>,Z extends Scalar<U>> |
addPointData(DataStream<Z> dataStream,
Length location,
Duration time,
Z value)
Adds point data.
|
<U extends Unit<U>,Z extends Scalar<U>> |
addPointData(Quantity<Z,?> quantity,
Length location,
Duration time,
Z value)
Adds point data.
|
<U extends Unit<U>,Z extends Scalar<U>> |
addVectorData(DataStream<Z> dataStream,
LengthVector location,
DurationVector time,
DoubleVectorInterface<U> values)
Adds vector data.
|
<U extends Unit<U>,Z extends Scalar<U>> |
addVectorData(Quantity<Z,?> quantity,
LengthVector location,
DurationVector time,
DoubleVectorInterface<U> values)
Adds vector data.
|
void |
clearDataBefore(Duration time)
Removes all data from before the given time.
|
TypedFilter |
filter(LengthVector location,
DurationVector time,
Quantity<?,?>... quantities)
Returns filtered data.
|
void |
setGaussKernel(Length sigma,
Duration tau)
Sets a Gaussian kernel with infinite range.
|
void |
setGaussKernel(Length sigma,
Duration tau,
Length xMax,
Duration tMax)
Returns a Gaussian kernel with limited range.
|
void |
setKernel(Length sigma,
Duration tau)
Sets an exponential kernel with infinite range.
|
void |
setKernel(Length xMax,
Duration tMax,
KernelShape shape)
Sets a kernel with limited range and provided shape.
|
void |
setKernel(Length sigma,
Duration tau,
Length xMax,
Duration tMax)
Returns an exponential kernel with limited range.
|
String |
toString() |
addGridDataSI, addGridDataSI, addListener, addPointDataSI, addPointDataSI, addVectorDataSI, addVectorDataSI, clearDataBefore, filterFastSI, filterParallelFastSI, filterParallelSI, filterSI, getDataSource, interrupt, removeListener, setGaussKernelSI, setGaussKernelSI, setKernel, setKernelSI, setKernelSI, setKernelSIpublic TypedEGTF()
public TypedEGTF(Speed cCong, Speed cFree, Speed deltaV, Speed vc)
cCong - Speed; shock wave speed in congestioncFree - Speed; shock wave speed in free flowdeltaV - Speed; speed range between congestion and free flowvc - Speed; flip-over speed below which we have congestionpublic TypedEGTF(Speed cCong, Speed cFree, Speed deltaV, Speed vc, Length sigma, Duration tau, Length xMax, Duration tMax)
cCong - Speed; shock wave speed in congestioncFree - Speed; shock wave speed in free flowdeltaV - Speed; speed range between congestion and free flowvc - Speed; flip-over speed below which we have congestionsigma - Length; spatial kernel sizetau - Duration; temporal kernel sizexMax - Length; maximum spatial rangetMax - Duration; maximum temporal rangepublic <U extends Unit<U>,Z extends Scalar<U>> void addPointData(Quantity<Z,?> quantity, Length location, Duration time, Z value)
U - unit of typeZ - value typequantity - Quantity<Z, ?>; quantity of the datalocation - Length; locationtime - Duration; timevalue - Z; data valueIllegalStateException - if data was added with a data stream previouslypublic <U extends Unit<U>,Z extends Scalar<U>> void addPointData(DataStream<Z> dataStream, Length location, Duration time, Z value)
U - unit of typeZ - value typedataStream - DataStream<Z>; data stream of the datalocation - Length; locationtime - Duration; timevalue - Z; data valueIllegalStateException - if data was added with a quantity previouslypublic <U extends Unit<U>,Z extends Scalar<U>> void addVectorData(Quantity<Z,?> quantity, LengthVector location, DurationVector time, DoubleVectorInterface<U> values)
U - unit of typeZ - value typequantity - Quantity<Z, ?>; quantity of the datalocation - LengthVector; locationstime - DurationVector; timesvalues - DoubleVectorInterface<U>; data valuesIllegalStateException - if data was added with a data stream previouslypublic <U extends Unit<U>,Z extends Scalar<U>> void addVectorData(DataStream<Z> dataStream, LengthVector location, DurationVector time, DoubleVectorInterface<U> values)
U - unit of typeZ - value typedataStream - DataStream<Z>; data stream of the datalocation - LengthVector; locationstime - DurationVector; timesvalues - DoubleVectorInterface<U>; data valuesIllegalStateException - if data was added with a quantity previouslypublic <U extends Unit<U>,Z extends Scalar<U>> void addGridData(Quantity<Z,?> quantity, LengthVector location, DurationVector time, DoubleMatrixInterface<U> values)
U - unit of typeZ - value typequantity - Quantity<Z, ?>; quantity of the datalocation - LengthVector; locationstime - DurationVector; timesvalues - DoubleMatrixInterface<U>; data valuesIllegalStateException - if data was added with a data stream previouslypublic <U extends Unit<U>,Z extends Scalar<U>> void addGridData(DataStream<Z> dataStream, LengthVector location, DurationVector time, DoubleMatrixInterface<U> values)
U - unit of typeZ - value typedataStream - DataStream<Z>; data stream of the datalocation - LengthVector; locationstime - DurationVector; timesvalues - DoubleMatrixInterface<U>; data valuesIllegalStateException - if data was added with a quantity previouslypublic void clearDataBefore(Duration time)
time - Duration; time before which all data can be removedpublic void setKernel(Length sigma, Duration tau)
sigma - Length; spatial kernel sizetau - Duration; temporal kernel sizepublic void setKernel(Length sigma, Duration tau, Length xMax, Duration tMax)
sigma - Length; spatial kernel size in [m]tau - Duration; temporal kernel size in [s]xMax - Length; maximum spatial range in [m]tMax - Duration; maximum temporal range in [s]public void setGaussKernel(Length sigma, Duration tau)
sigma - Length; spatial kernel sizetau - Duration; temporal kernel sizepublic void setGaussKernel(Length sigma, Duration tau, Length xMax, Duration tMax)
sigma - Length; spatial kernel size in [m]tau - Duration; temporal kernel size in [s]xMax - Length; maximum spatial range in [m]tMax - Duration; maximum temporal range in [s]public void setKernel(Length xMax, Duration tMax, KernelShape shape)
xMax - Length; maximum spatial rangetMax - Duration; maximum temporal rangeshape - KernelShape; shape of the kernelpublic TypedFilter filter(LengthVector location, DurationVector time, Quantity<?,?>... quantities)
location - LengthVector; location of output gridtime - DurationVector; time of output gridquantities - Quantity<?, ?>...; quantities to calculate filtered data ofnull when interruptedCopyright © 2014–2019 Delft University of Technology. All rights reserved.