Package org.opentrafficsim.core.egtf
Class Kernel
- java.lang.Object
-
- org.opentrafficsim.core.egtf.Kernel
-
public class Kernel extends Object
Kernel with maximum range and shape.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 24 okt. 2018
- Author:
- Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description Kernel(double xMax, double tMax, KernelShape shape)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) double
fromLocation(double x)
Returns the from location of the valid data range.(package private) double
fromTime(double t)
Returns the from time of the valid data range.(package private) double
toLocation(double x)
Returns the to location of the valid data range.String
toString()
(package private) double
toTime(double t)
Returns the to time of the valid data range.(package private) double
weight(double c, double dx, double dt)
Returns a weight assuming given propagation speed.
-
-
-
Constructor Detail
-
Kernel
Kernel(double xMax, double tMax, KernelShape shape)
Constructor.- Parameters:
xMax
- double; maximum spatial rangetMax
- double; maximum temporal rangeshape
- KernelShape; shape of the kernel
-
-
Method Detail
-
weight
final double weight(double c, double dx, double dt)
Returns a weight assuming given propagation speed.- Parameters:
c
- double; assumed propagation speeddx
- double; distance between measurement and estimated pointdt
- double; time between measurement and estimated point- Returns:
- double; weight assuming given propagation speed
-
fromLocation
final double fromLocation(double x)
Returns the from location of the valid data range.- Parameters:
x
- double; location of estimated point- Returns:
- double; from location of the valid data range
-
toLocation
final double toLocation(double x)
Returns the to location of the valid data range.- Parameters:
x
- double; location of estimated point- Returns:
- double; to location of the valid data range
-
fromTime
final double fromTime(double t)
Returns the from time of the valid data range.- Parameters:
t
- double; time of estimated point- Returns:
- double; from time of the valid data range
-
toTime
final double toTime(double t)
Returns the to time of the valid data range.- Parameters:
t
- double; time of estimated point- Returns:
- double; to time of the valid data range
-
-