vandermode: Vandermode Matrix

Description Usage Arguments Value Examples

View source: R/vandermode.R

Description

The function returns the Vandermode matrix of a numeric vector, x, whose columns are the vector raised to the powers 0:n.

Usage

1
vandermode(x, n)

Arguments

x

a numeric vector

n

a numeric scalar

Value

a matrix of size length(x) x n

Examples

1
vandermode(1:5, 4)

friendly/matlib documentation built on Aug. 26, 2018, 5:49 a.m.