Package org.opentrafficsim.draw.egtf
Class Kernel
java.lang.Object
org.opentrafficsim.draw.egtf.Kernel
Kernel with maximum range and shape.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) final double
fromLocation
(double x) Returns the from location of the valid data range.(package private) final double
fromTime
(double t) Returns the from time of the valid data range.(package private) final double
toLocation
(double x) Returns the to location of the valid data range.toString()
(package private) final double
toTime
(double t) Returns the to time of the valid data range.(package private) final double
weight
(double c, double dx, double dt) Returns a weight assuming given propagation speed.
-
Constructor Details
-
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 Details
-
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
-
toString
-