Learn R Programming

GPoM (version 1.0)

p2dMax: p2dMax : provides dMax given pMax and nVar

Description

Search the maximum polynomial degree dMax given the number of polynomial terms pMax and the system dimension nVar

Usage

p2dMax(nVar, pMaxKnown)

Arguments

nVar

The model dimension expected. This parameter will be deduced from the input data (series) if series is a matrix. If series is a vector, the expected dimension nVar should be provided.

pMaxKnown

The number of polynoms terms to retrieve

Value

The maximum polynomial degree dMax used to code the polynomial

See Also

gloMoId, gPoMo, poLabs

Examples

Run this code
# NOT RUN {
#############
# Example 1 #
#############
# Maximum polynomial degree ?
# number of variables:
nVar <- 3
# size of the polynomial vector:
pMax <- 10
# The maximal polynomial degree used for coding the polynomial is:
p2dMax(nVar,pMax)

#############
# Example 2 #
#############
# for pMax = 462 and nVar = 6, then dMax is:
p2dMax(6,462)
# indeed:
length(poLabs(nVar=6, dMax=5))

# }

Run the code above in your browser using DataLab