wedge | R Documentation |
Calculates the result from the wedge operation on two real coefficient matrices, two y evaluated polynomial coefficient vectors or two phylo objects.
wedge(A, B, type = c("default", "yEvaluated", "phylo"), y)
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 |
the wedge result in the same form as the arguments
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.