Get a vector of all parameters (real and discrete) describing a model on a tree including the numerical parameters of each model regime, the integer ids of the splitting nodes defining the regimes on the tree and the integer ids of the model types associated with each regime.

PCMGetVecParamsRegimesAndModels(model, tree, ...)

Arguments

model

a PCM model

tree

a phylo object with an edge.part member.

...

additional parameters passed to methods.

Value

a numeric vector concatenating the result

Details

This is an S3 generic. In the default implementation, the last entry in the returned vector is the number of numerical parameters. This is used to identify the starting positions in the vector of the first splitting node.