Package org.opentrafficsim.draw.egtf
Class ExpKernelShape
java.lang.Object
org.opentrafficsim.draw.egtf.ExpKernelShape
- All Implemented Interfaces:
KernelShape
Exponential implementation of a shape. Used as default when kernels are created.
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
-
Constructor Details
-
ExpKernelShape
ExpKernelShape(double sigma, double tau) Constructor.- Parameters:
sigma
- double; spatial size of the kerneltau
- double; temporal size of the kernel
-
-
Method Details
-
weight
public double weight(double c, double dx, double dt) Calculates a weight.- Specified by:
weight
in interfaceKernelShape
- Parameters:
c
- double; assumed propagation speeddx
- double; distance between measurement and estimated pointdt
- double; time between measurement and estimated point- Returns:
- double; weight
-
toString
-