internals {OPE}R Documentation

Utility functions for package OPE

Description

Utility functions for package OPE

Usage

is.numeric.vector(x)
is.scalar(x)
is.variance(x, strict = TRUE, tol = 1e-06)

Arguments

x An object of some kind
strict Require x to be non-singlar?
tol Numerical tolerance for spectral decomposition

Value

Logical.

Author(s)

Jonathan Rougier j.c.rougier@bristol.ac.uk

Examples

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

[Package OPE version 0.7 Index]