degl: Construct matrix of exponent vectors.

Description Usage Arguments Details

View source: R/fit_SSM.R

Description

This function is called by fit.ssm when it needs to construct the matrix of exponent vectors stored in the basis slot.

Usage

1
degl(d, N, exclude = list())

Arguments

d

A number. This determines the number of columns in the output matrix

N

A number. This determines the number of rows in the output matrix.

exclude

(optional) A list of integer vectors. If this argument is provided, the generated matrix will not contain any rows which are only non-zero in the columns specified by any of the vectors in the list.

Details

The algorithm works by repeated calls to comb to generate all possible exponent vectors of a given degree until N vectors have been generated. Any generated vector is checked to make sure that it's non-zero entries do not match a vector provided in exclude before being added to the output matrix.


SSM documentation built on May 1, 2019, 10:09 p.m.