Class Kernel

java.lang.Object
org.opentrafficsim.draw.egtf.Kernel

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

    Constructors
    Constructor
    Description
    Kernel(double xMax, double tMax, KernelShape shape)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) final double
    fromLocation(double x)
    Returns the from location of the valid data range.
    (package private) final double
    fromTime(double t)
    Returns the from time of the valid data range.
    (package private) final double
    toLocation(double x)
    Returns the to location of the valid data range.
    (package private) final double
    toTime(double t)
    Returns the to time of the valid data range.
    (package private) final double
    weight(double c, double dx, double dt)
    Returns a weight assuming given propagation speed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object