Join us for
RADAR: AI Edition

matrixcalc (version 1.0-6)

vandermonde.matrix: Vandermonde matrix

Description

This function returns an m by n matrix of the powers of the alpha vector

Usage

vandermonde.matrix(alpha, n)

Value

A matrix.

Arguments

alpha

A numerical vector of values

n

The column dimension of the Vandermonde matrix

Author

Frederick Novomestky fnovomes@poly.edu

Details

In linear algebra, a Vandermonde matrix is an m×n matrix with terms of a geometric progression of an m×1 parameter vector α=[α1α2αm]

such that V(α)=[1α1α12α1n11α2α22α2n11α3α32α3n11αmαm2αmn1].

References

Horn, R. A. and C. R. Johnson (1991). Topics in matrix analysis, Cambridge University Press.

Examples

Run this code
alpha <- c( .1, .2, .3, .4 )
V <- vandermonde.matrix( alpha, 4 )
print( V )

Run the code above in your browser using DataLab