basis_vec {lpcde}R Documentation

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)

Arguments

x

Sample input scalar or vector.

p

Polynomial order.

mu

Derivative order.

Value

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

Examples

basis_vec(x = 2, p = 5, mu = 1)

[Package lpcde version 0.1.4 Index]