Package org.opentrafficsim.core.egtf
Class GaussKernelShape
- java.lang.Object
-
- org.opentrafficsim.core.egtf.GaussKernelShape
-
- All Implemented Interfaces:
KernelShape
public class GaussKernelShape extends Object implements KernelShape
Gaussian implementation of a 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 31 okt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description GaussKernelShape(double sigma, double tau)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
double
weight(double c, double dx, double dt)
Calculates a weight.
-
-
-
Method Detail
-
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
-
-