Class GaussKernelShape

java.lang.Object
org.opentrafficsim.draw.egtf.GaussKernelShape
All Implemented Interfaces:
KernelShape

public class GaussKernelShape extends Object implements KernelShape
Gaussian implementation of a 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:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • GaussKernelShape

      GaussKernelShape(double sigma, double tau)
      Constructor.
      Parameters:
      sigma - double; spatial size of the kernel
      tau - 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 interface KernelShape
      Parameters:
      c - double; assumed propagation speed
      dx - double; distance between measurement and estimated point
      dt - double; time between measurement and estimated point
      Returns:
      double; weight
    • toString

      public String toString()
      Overrides:
      toString in class Object