COSINES Function
Standard Library basis function that can be used by the SVDFIT function.
Usage
result = COSINES(x, m)
Input Parameters
x—A vector of data values with n elements.
m—The number of terms in the basis function.
Returned Value
result—An n-by-m array, such that:
result(i, j) = COS(j * x(i))
Keywords
None.
Discussion
COSINES consists simply of the following two lines:
FUNCTION COSINES, x, m
RETURN, COS(x # FINDGEN(m))
See Also