powered by
Currently only implemented for Cort models. Compute the L2 quadratic product of 2 trees
quad_prod(object, other_tree)# S4 method for Cort,Cort quad_prod(object, other_tree)
# S4 method for Cort,Cort quad_prod(object, other_tree)
: the tree
: the other tree
the quadratic product between the trees
quad_prod,Cort,Cort-method: Method for the class Cort
quad_prod,Cort,Cort-method
# NOT RUN { cop <- Cort(LifeCycleSavings[,1:3]) all.equal(quad_prod(cop,cop),quad_norm(cop)) # }
Run the code above in your browser using DataLab