extract.parsimonyCost: Extraction of the actual number of solutions.

View source: R/parsimonyNumber.R

extract.parsimonyCostR Documentation

Extraction of the actual number of solutions.

Description

extract.parsimonyCost takes an object of class "parsimonyCost", result of function parsimonyCost, and computes the minimum cost at the given node.

Usage

## S3 method for class 'parsimonyCost'
extract(x, node = attr(x, "ntaxa") + 1, ...)

Arguments

x

an object of class "parsimonyCost", result of function parsimonyCost.

node

the root node of the subtree. By default, the root of the tree.

...

unused

Value

An integer giving the minimum cost of the subtree.

See Also

parsimonyCost


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.