blob: 386558ce2eb686ade99904634ee45f96ae0769c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
.help cvpower Jan86 "Curfit Package"
.ih
NAME
cvpower -- convert coefficients to power series coefficients.
.ih
SYNOPSIS
.nf
include <math/curfit.h>
include "curfitdef.h"
cvpower (cv, ps_coeff, ncoeff)
pointer cv # Curve descriptor
real ps_coeff[ncoeff] # Power series coefficients
int ncoeff # Number of coefficients in fit
.fi
.ih
ARGUMENTS
.ls cv
Pointer to the curve descriptor structure.
.le
.ls ps_coeff
The output array of power series coefficients.
.le
.ls ncoeff
The output number of coefficients in the fit.
.le
.ih
DESCRIPTION
This routine routines the equivlalent power series fit coefficients
and the number of coefficients.
The coefficients of either a legendre or chebyshev solution can be converted
to power series coefficients of the form y = a0 + a1*x + a2*x**2 + a3*x**3...
The output coefficients are scaled to the original data range.
.ih
NOTES
Only legendre and chebyshev coefficients are converted. An error is
reported for other curve types.
.endhelp
|