Class Trajectory.Boundary

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

public class Trajectory.Boundary
extends java.lang.Object

Copyright (c) 2013-2019 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 Summary

    Fields 
    Modifier and Type Field Description
    double fraction
    Fraction.
    int index
    Rounded-down index.
  • Method Summary

    Modifier and Type Method Description
    double getValue​(float[] array)
    Returns the value at the boundary in the array.
    java.lang.String toString()

    Methods inherited from class java.lang.Object

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

    • index

      public final int index
      Rounded-down index.
    • fraction

      public final double fraction
      Fraction.
  • Method Details

    • toString

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