Package org.sm.smtools.math
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
-
Constructor Summary
Constructors Constructor Description FunctionLookupTable()
Constructs an emptyFunctionLookupTable
object.FunctionLookupTable(double[] x, double[] y)
Constructs aFunctionLookupTable
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[] fXThe x-values. -
fY
public double[] fYThe y-values.
-
-
Constructor Details
-
FunctionLookupTable
public FunctionLookupTable()Constructs an emptyFunctionLookupTable
object. -
FunctionLookupTable
public FunctionLookupTable(double[] x, double[] y)Constructs aFunctionLookupTable
object with specified inputs.- Parameters:
x
- the X-valuesy
- the Y-values
-
-
Method Details
-
reset
public void reset()Resets the function lookup table.
-