Learn R Programming

lpcde (version 0.1.6)

basis_vec: Unit basis vector

Description

Function to generate unit basis vector according to polynomial order and derivative order. This function returns unit vector that is the same size as the vector returned by poly_base(x, p).

Usage

basis_vec(x, p, mu)

Value

Vector of appropriate length with ones corresponding to entries of order mu.

Arguments

x

Sample input scalar or vector.

p

Polynomial order.

mu

Derivative order.

Examples

Run this code
basis_vec(x = 2, p = 5, mu = 1)

Run the code above in your browser using DataLab