wedge {treenomial} | R Documentation |
Performs the wedge operation
Description
Calculates the result from the wedge operation on two real coefficient matrices, two y evaluated polynomial coefficient vectors or two phylo objects.
Usage
wedge(A, B, type = c("default", "yEvaluated", "phylo"), y)
Arguments
A , B |
two real coefficient matrices, complex coefficient vectors or phylo objects |
type |
one of:
|
y |
the y value to evaluate the polynomial at when type is “yEvaluated”, ignored otherwise |
Value
the wedge result in the same form as the arguments
Examples
library(treenomial)
library(ape)
# wedge two real coefficient matrices
leaf <- matrix(c(0,1), nrow = 1, ncol = 2)
wedge(leaf, leaf)
# wedge two complex coefficient vectors
leaf <- as.complex(c(0,1))
wedge(leaf, leaf, "yEvaluated",5)
[Package treenomial version 1.1.4 Index]