vander | R Documentation |
Generate Vandermonde matrix from a numeric vector.
vander(x)
x |
Numeric vector |
Generates the usual Vandermonde matrix from a numeric vector, e.g. applied when fitting a polynomial to given points. Complex values are allowed.
Vandermonde matrix of dimension n where n = length(x)
.
vander(c(1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.