Learn R Programming

GPoM (version 1.4)

cano2M: 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)

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

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).

Author

Sylvain Mangiarotti, Mireille Huc

See Also

drvSucc, gPoMo, poLabs

Examples

Run this code
# 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)

Run the code above in your browser using DataLab