Class Kernel


  • public class Kernel
    extends Object
    Kernel with maximum range and 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 24 okt. 2018
    Author:
    Wouter Schakel
    • Constructor Summary

      Constructors 
      Constructor Description
      Kernel​(double xMax, double tMax, KernelShape shape)
      Constructor.
    • Constructor Detail

      • Kernel

        Kernel​(double xMax,
               double tMax,
               KernelShape shape)
        Constructor.
        Parameters:
        xMax - double; maximum spatial range
        tMax - double; maximum temporal range
        shape - KernelShape; shape of the kernel
    • Method Detail

      • weight

        final double weight​(double c,
                            double dx,
                            double dt)
        Returns a weight assuming given propagation speed.
        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 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