Class ExpKernelShape

  • All Implemented Interfaces:
    KernelShape

    public class ExpKernelShape
    extends java.lang.Object
    implements KernelShape
    Exponential implementation of a shape. Used as default when kernels are created.

    Copyright (c) 2013-2020 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      double weight​(double c, double dx, double dt)
      Calculates a weight.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object