Class Trajectory.Boundary

java.lang.Object
org.opentrafficsim.kpi.sampling.Trajectory.Boundary
Enclosing class:
Trajectory<G extends GtuDataInterface>

public class Trajectory.Boundary
extends Object

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 15 okt. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Field Details

    • index

      public final int index
      Rounded-down index.
    • fraction

      public final double fraction
      Fraction.
  • Method Details

    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getValue

      public double getValue​(float[] array)
      Returns the value at the boundary in the array.
      Parameters:
      array - float[]; float[] array
      Returns:
      double; value at the boundary in the array