Next: ARRAYStructure
Up: Low-Level Structures
Previous: Low-Level Structures
POLYNOMIAL
Structure
The
POLYNOMIAL
structure is used for storing the coefficients of an
-dimensional ordinary or Chebyshev polynomial. Evaluation of
the polynomial yields a
float
scalar result.
Table:
Contents of the
POLYNOMIAL
Structure
| Component Name |
TYPE |
Brief Description |
| [VARIANT] |
_CHAR |
registered variant |
| [DATA_ARRAY] |
farray |
coefficients |
| [VARIANCE] |
farray |
variance of the coefficients |
| [TMIN(NAXIS)] |
float |
lower bound of co-ordinate range |
| [TMAX(NAXIS)] |
float |
upper bound of co-ordinate range |
- [VARIANT]
- At present, there are
two variants. The base variant
([VARIANT] = `SIMPLE') is the ordinary polynomial,
while
[VARIANT] = `CHEBYSHEV' is used
for storing Chebyshev polynomials.
- [DATA_ARRAY]
- This is mandatory. The
interpretation depends on the value
of [VARIANT]. The
scalar (VALUE) which results from the
evaluation of the polynomial inherits the equivalent primitive TYPE
of the polynomial coefficients.
- [VARIANT] =
- `SIMPLE'
The [DATA_ARRAY] is the
-dimensional array containing
the
-dimensional polynomial
coefficients. The function is evaluated as:
summed over all elements of the DATA_ARRAY.
Here, AXIS
is the co-ordinate value along axis
, and
NAXIS
is the dimension of axis
.
- [VARIANT] =
- `CHEBYSHEV'
The [DATA_ARRAY] contains the NAXIS-dimensional
array of Chebyshev-polynomial coefficients. The function is evaluated as:
summed over all elements of the DATA_ARRAY, where
is the Chebyshev polynomial of order
evaluated at
(in the range
1 to
1),
and
If the polynomial is evaluated outside this interval, the result is bad, and set
to the magic value.
- [VARIANCE]
- This optional component is used to describe the variance of the
errors associated with the polynomial coefficients given
by the [DATA_ARRAY] component, and
it must be an array of the same
dimension as [DATA_ARRAY].
- NAXIS
- The dimensionality of the
[DATA_ARRAY] and therefore the dimensionality
of the space over which the polynomial function is defined.
- [TMIN(
)], [TMAX(
)]
- These are the minimum and maximum values along
AXIS number
. They represent the bounds of the normalised
co-ordinate range. Only processed if
[VARIANT] = `CHEBYSHEV', for which they are mandatory.
Next: ARRAYStructure
Up: Low-Level Structures
Previous: Low-Level Structures
Starlink Standard Data Structures
Starlink General Paper 38
Malcolm J Currie, P T Wallace &
R F Warren-Smith
1989 January 20
E-mail:ussc@star.rl.ac.uk
Copyright © 2008 Science and Technology Facilities Council