public interface QFunction
Modifier and Type | Method and Description |
---|---|
QDataSet |
exampleInput()
Discover an example input.
|
QDataSet |
exampleOutput()
Discover an example of output.
|
QDataSet |
value(QDataSet parm)
Evaluate the function at the location.
|
QDataSet |
values(QDataSet parm)
Evaluate the function at the locations in parm.
|
QDataSet value(QDataSet parm)
parm
- rank 1 bundle of N elements, or rank 2 array of such.QDataSet values(QDataSet parm)
parm
- rank 2 of C bundles of N elements. rank 1 parm is acceptable if the exampleInput result is rank 0.QDataSet exampleInput()
slice(0) is the first argument, slice(1) would be the second, etc. This would be a bundle. Note, for functions that have only one argument, like F(T)→[R,MLT,MLAT], this may return a rank 0 dataset. Clients should pass a dataset to the value method a dataset with the same geometry.QFunction ff= TestFunction(); ff.exampleInput().length(); // how many parameters the function takes QDataSet bds= ff.exampleInput().property( QDataSet.BUNDLE_0 ); bds.slice(0).property( QDataSet.UNITS ) // function should handle convertible units (e.g. TimeAxes Ephemeris). bds.slice(0).property( QDataSet.VALID_MIN ) // absolute limits of domain of the function bds.slice(0).property( QDataSet.VALID_MAX ) bds.slice(0).property( QDataSet.TYPICAL_MIN ) // domain of the function parameter bds.slice(0).property( QDataSet.TYPICAL_MAX ) bds.slice(0).property( QDataSet.CADENCE ) // granularity of the function parameter bds.slice(0).property( QDataSet.LABEL ) // label for the parameter
QDataSet exampleOutput()
value( exampleInput() );