internals {OPE} | R Documentation |
Utility functions for package OPE
is.numeric.vector(x) is.scalar(x) is.variance(x, strict = TRUE, tol = 1e-06)
x |
An object of some kind |
strict |
Require x to be non-singlar? |
tol |
Numerical tolerance for spectral decomposition |
Logical.
Jonathan Rougier j.c.rougier@bristol.ac.uk
is.numeric.vector(3:6) # yes is.numeric.vector(LETTERS) # no is.scalar(3:5) # no is.scalar('a') # no is.variance(matrix(c(1, 1, 1, 4), 2, 2)) # yes is.variance(matrix(c(1, 1, 1, 1), 2, 2)) # no is.variance(matrix(c(1, 1, 1, 1), 2, 2), strict = FALSE) # yes