|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.DataTables2D
Class DataTables2D provides static methods
to create data tables from "functions" of type
Function.OneArg.
The data tables may be used for numerical processing or for plotting with the plot tools.
See also the makeTable methods in
BaseParser.
| Constructor Summary | |
DataTables2D()
|
|
| Method Summary | |
static Point2D[][] |
makeTable(Function.OneArg[] f,
double endpointA,
double endpointB,
int divisions)
Make a Point2D array of arrays of pairs (x, f[i](x)) where i ranges over the valid indices for the function array f and where x is sampled on the given interval divided into the number of divisions. |
static Point2D[][] |
makeTable(Function.OneArg[] f,
XInterval limits,
int divisions)
Make a Point2D array of arrays of pairs (x,f[i](x)) where i ranges over the valid indices for the function array f and where x is sampled on the given interval divided into the number of divisions. |
static Point2D[] |
makeTable(Function.OneArg f,
double endpointA,
double endpointB,
int divisions)
Make a Point2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions. |
static Point2D[] |
makeTable(Function.OneArg f,
XInterval limits,
int divisions)
Make a Point2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataTables2D()
| Method Detail |
public static Point2D[] makeTable(Function.OneArg f,
XInterval limits,
int divisions)
Make a Point2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions.
If the given function or the given limits is null,
returns null.
If divisions is less than 1, it will be set to 1. The size of the output array will be (divisions+1).
f - the function of one argument to evaluatelimits - the interval on which to evaluatedivisions - the number of subdivisions of the interval
public static Point2D[] makeTable(Function.OneArg f,
double endpointA,
double endpointB,
int divisions)
Make a Point2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions.
If the given function is null,
returns null.
If divisions is less than 1, it will be set to 1. The size of the output array will be (divisions+1).
f - the function of one argument to evaluateendpointA - an endpoint of the intervalendpointB - an endpoint of the intervaldivisions - the number of subdivisions of the interval
public static Point2D[][] makeTable(Function.OneArg[] f,
XInterval limits,
int divisions)
Make a Point2D array of arrays of pairs (x,f[i](x)) where i ranges over the valid indices for the function array f and where x is sampled on the given interval divided into the number of divisions.
If the given function array or the given limits is
null, returns null.
If a particular function in the function array is
null, the corresponding row of the return array
will also be null.
If divisions is less than 1, it will be set to 1. The size of the output array will be (f.length)*(divisions+1).
f - the array of functions of one argument to evaluatelimits - the interval on which to evaluatedivisions - the number of subdivisions of the interval
public static Point2D[][] makeTable(Function.OneArg[] f,
double endpointA,
double endpointB,
int divisions)
Make a Point2D array of arrays of pairs (x, f[i](x)) where i ranges over the valid indices for the function array f and where x is sampled on the given interval divided into the number of divisions.
If the given function array is null, returns
null.
If a particular function in the function array is
null, the corresponding row of the return array
will also be null.
If divisions is less than 1, it will be set to 1. The size of the output array will be (f.length)*(divisions+1).
f - the array of functions of one argument to evaluateendpointA - an endpoint of the intervalendpointB - an endpoint of the intervaldivisions - the number of subdivisions of the interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||