|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.hws.jcm.functions.FunctionParserExtension
edu.hws.jcm.functions.TableFunction
data.StandardNormalTable
public class StandardNormalTable
StandardNormalTable
This class manage a reduced centered normal law table. The table values must be stocked in a file in the following format :Copyright(c) 2005 Université Laval, LSFM research group.
Field Summary |
---|
Fields inherited from class edu.hws.jcm.functions.TableFunction |
---|
PIECEWISE_LINEAR, SMOOTH, STEP, STEP_LEFT, STEP_RIGHT |
Fields inherited from class edu.hws.jcm.functions.FunctionParserExtension |
---|
name |
Constructor Summary | |
---|---|
StandardNormalTable()
Default constructor without parameters. |
|
StandardNormalTable(java.lang.String file)
Constructor with a specified file. |
|
StandardNormalTable(java.lang.String file,
Parser p,
Variable y)
Constructir with a file and parser specified. |
Method Summary | |
---|---|
void |
apply(StackOfDouble stack,
Cases cases)
Returns the evaluation of the function using the real number on the top of the stack as a parameter. |
double |
getVal(double v)
Get the value of the function with the specified v value. |
double |
getVal(double[] args)
This function can compute no more than one value of v. |
double |
getValueWithCases(double[] params,
Cases cases)
This function is simply a wrapper. |
java.lang.String |
toString()
Returns a string representing the normal law. |
Methods inherited from class edu.hws.jcm.functions.TableFunction |
---|
addIntervals, addPoint, addPoints, copyDataFrom, dependsOn, derivative, derivative, findPoint, getArity, getPointCount, getStyle, getX, getY, removeAllPoints, removePointAt, setStyle, setY |
Methods inherited from class edu.hws.jcm.functions.FunctionParserExtension |
---|
appendOutputString, compileDerivative, doParse, extent, getName, setName, setParensCanBeOptional |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandardNormalTable()
public StandardNormalTable(java.lang.String file)
file
- the file from which to load the table.public StandardNormalTable(java.lang.String file, Parser p, Variable y)
file
- the file name from which to load the tablep
- the parser with which the table will be registeredy
- the variable to be evaluatedStandardNormalTable#StandardNormalTable(File)
Method Detail |
---|
public double getVal(double v)
getVal
in class TableFunction
v
- value of the variable in the function.
public double getVal(double[] args)
getVal
in interface Function
getVal
in class TableFunction
args
- a list of real numbers to evaluate
getVal(double)
public double getValueWithCases(double[] params, Cases cases)
getValueWithCases
in interface Function
getValueWithCases
in class TableFunction
params
- a list of real numbers to evaluatecases
- ignored
public void apply(StackOfDouble stack, Cases cases)
apply
in interface ExpressionCommand
apply
in class TableFunction
stack
- a stack containg doublescases
- ignoredpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |