vander | R Documentation |
Generate Vandermonde matrix from a vector of numbers.
vander(v)
v |
numeric or complex vector of values |
Generates the Vandermonde matrix whose columns are powers of the vector
v
(of length n
) using the formula
A[i, j] = v[i]^(n-j)
Used when fitting a polynomial to given points.
Returns an n
-by-n
matrix constructed as described above.
H. Borchers hwborchers@googlemail.com, P. Roebuck proebuck1701@gmail.com
vander(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.