uk.ac.essex.common.util
Class JEPToArrayBridge
java.lang.Object
uk.ac.essex.common.util.JEPToArrayBridge
public class JEPToArrayBridge
- extends java.lang.Object
Class to convert between the output of the JEP
parser and an array. Basically
this converts a continuous function to an array of discrete values. This is generally useful
for 2d functions that can be plotted on a x-y axis.
Copyright: Copyright (c) 2001
Company: MSX-International
Constructor Summary |
JEPToArrayBridge(java.lang.String variableName,
int arraySize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEPToArrayBridge
public JEPToArrayBridge(java.lang.String variableName,
int arraySize)
getIntArray
public int[] getIntArray()
- Returns:
getDoubleArray
public double[] getDoubleArray()
- Returns:
getFloatArray
public float[] getFloatArray()
- Returns:
getParser
public org.nfunk.jep.JEP getParser()
- Returns:
setExpression
public void setExpression(java.lang.String expression)