|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplf.Function_2D
public class Function_2D
This class allows the user to define a piecewise linear function over a 2-dimensional domain. Each dimension is divided into equally spaced intervals, but the separate dimensions can have different spacing and different numbers of points.
| Constructor Summary | |
|---|---|
Function_2D(java.lang.String name,
int[] dim_counts,
double[] min_x_values,
double[] max_x_values,
double[] y_values)
The constructor stores the function value defintions. |
|
| Method Summary | |
|---|---|
double |
getValue(double[] x_values)
Get the function value for a given input value. |
void |
Print()
Formats the function definition into a string and prints it. |
java.lang.String |
toString()
Formats the function definition into a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Function_2D(java.lang.String name,
int[] dim_counts,
double[] min_x_values,
double[] max_x_values,
double[] y_values)
throws java.lang.Exception
name - The name of the function represented.dim_counts - The number of points per dimension axis.min_x_values - The minimum x_values.max_x_values - The maximum x_values.y_values - The array of y-axis values.
java.lang.Exception - if discrepencies are identified.| Method Detail |
|---|
public double getValue(double[] x_values)
throws java.lang.Exception
x_values - the arguments in each dimension to the function.
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void Print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||