Class FunctionLookupTable

java.lang.Object
org.sm.smtools.math.FunctionLookupTable

public final class FunctionLookupTable
extends java.lang.Object
The FunctionLookupTable class provides a raw container for storing a 1D function's (X,Y) values.

Note that this class cannot be subclassed!

Version:
08/11/2012
Author:
Sven Maerivoet
  • Field Summary

    Fields
    Modifier and Type Field Description
    double[] fX
    The x-values.
    double[] fY
    The y-values.
  • Constructor Summary

    Constructors
    Constructor Description
    FunctionLookupTable()
    Constructs an empty FunctionLookupTable object.
    FunctionLookupTable​(double[] x, double[] y)
    Constructs a FunctionLookupTable object with specified inputs.
  • Method Summary

    Modifier and Type Method Description
    void reset()
    Resets the function lookup table.

    Methods inherited from class java.lang.Object

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

    • fX

      public double[] fX
      The x-values.
    • fY

      public double[] fY
      The y-values.
  • Constructor Details

    • FunctionLookupTable

      public FunctionLookupTable()
      Constructs an empty FunctionLookupTable object.
    • FunctionLookupTable

      public FunctionLookupTable​(double[] x, double[] y)
      Constructs a FunctionLookupTable object with specified inputs.
      Parameters:
      x - the X-values
      y - the Y-values
  • Method Details

    • reset

      public void reset()
      Resets the function lookup table.