View Javadoc
1   package org.opentrafficsim.draw.egtf;
2   
3   /**
4    * Shape interface for a kernel.
5    * <p>
6    * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7    * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
8    * </p>
9    * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
10   */
11  public interface KernelShape
12  {
13  
14      /**
15       * Calculates a weight.
16       * @param c double; assumed propagation speed
17       * @param dx double; distance between measurement and estimated point
18       * @param dt double; time between measurement and estimated point
19       * @return double; weight
20       */
21      double weight(double c, double dx, double dt);
22  
23  }