cano2M: cano2M : Converts a model in canonical form into a matrix...

View source: R/cano2M.R

cano2MR Documentation

cano2M : Converts a model in canonical form into a matrix form

Description

Converts the vectorial formulation of canonical models into a matrix formulation (that is, including explicitely all the equations). For both input, the list of terms follows the convention defined by poLabs.

Usage

cano2M(nVar, dMax, poly, dMin = 0)

Arguments

nVar

The number of variables

dMax

The maximum degree allowed in the formulation

poly

A vector of coefficients corresponding to the regressor of the canonical function

dMin

The minimum negative degree of the polynomial formulation (0 by default).

Value

Kmod A matrix with nVar columns of the complete description of the equations. The first columns relates to the canonical part dX1/dt = X2, dX2/dt = X3 etc. and the column is the polynomial term itself

Author(s)

Sylvain Mangiarotti, Mireille Huc

See Also

drvSucc, gPoMo, poLabs

Examples

# A vector of polynomial terms corresponding to a canonical form:
polyTerms <- c(0.2,0,-1,0.5,0,0,0,0,0,0)
# Convert this vector into a matrix formulation with all the equations: 
K <- cano2M(3,2,polyTerms)
# Visualize the equations:
visuEq(K,3,2)


GPoM documentation built on July 9, 2023, 6:23 p.m.