|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.DrawOptions
jhplot.FND
public class FND
Create a function in multiple dimensions. The function name could have parameters named in unique way as P0, P1, P2 ... They have to be replaced with values using setPar() method for evaluation
Constructor Summary | |
---|---|
FND(java.lang.String name,
java.lang.String vars)
Create a function in any dimension evaluation. |
Method Summary | |
---|---|
void |
diff(java.lang.String var)
differentiate the expression and simplify |
double |
eval(java.lang.String vars)
Evaluate a function at a specific point in x |
boolean |
eval(java.lang.String indvars,
double xmin,
double xmax)
Evaluate a function at a specific point for one single variable. |
boolean |
eval(java.lang.String indvars,
double xmin,
double xmax,
java.lang.String vars)
Evaluate a function at a specific point for one single variable. |
java.lang.String |
getFixedVars()
String with fixed variables |
double |
getMax()
Get the maximum value in X |
double |
getMin()
Get the minimum value in X |
java.lang.String |
getName()
Get the name of the function used for evaluation |
int |
getPoints()
Get the number of points |
java.lang.String[] |
getVars()
Return all variables |
double |
getX(int i)
Get value in X-axis |
double |
getY(int i)
Get value in Y-axis |
void |
setComplex()
Treat the function as complex. |
void |
setMax(double max)
Set the maximum value in X |
void |
setMin(double min)
Set Min value in X |
void |
setName(java.lang.String name)
Sets a name of the function, i.e. |
void |
setPoints(int bins)
Sets the number points between Min and Max for evaluation |
void |
simplify()
Treat the function as complex. |
java.lang.String |
toString()
Convert to string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FND(java.lang.String name, java.lang.String vars)
name
- String representing the functionvars
- String representing variables. Each variable
should be separated by a comma. Example "x,y,z"Method Detail |
---|
public void setComplex()
public void simplify()
public void diff(java.lang.String var)
var
- variable used for differentiationpublic java.lang.String[] getVars()
public java.lang.String toString()
toString
in class java.lang.Object
public double eval(java.lang.String vars)
vars
- Values for evaluation separated by commas, x=1,y=2,z=3
public boolean eval(java.lang.String indvars, double xmin, double xmax, java.lang.String vars)
indvars
- Define independent variable, like 'x'
Only one variable is allowedxmin
- xmin value for independent variblexmax
- xmax value for independent variblevars
- define values for other variables, like 'y=1,z=3'
public boolean eval(java.lang.String indvars, double xmin, double xmax)
indvars
- Define independent variable, like 'x'
Only one variable is allowedxmin
- xmin value for independent variblexmax
- xmax value for independent varible
public double getX(int i)
i
- index
public double getY(int i)
i
- index
public void setName(java.lang.String name)
name
- Namepublic java.lang.String getName()
public void setMin(double min)
min
- Minimum valuepublic double getMin()
public void setMax(double max)
max
- Maximal valuepublic double getMax()
public void setPoints(int bins)
bins
- Number of pointspublic int getPoints()
public java.lang.String getFixedVars()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |