| is.projector | R Documentation |
Tests whether an object is a valid object of class
"projector".
is.projector(object)
object |
The |
The function is.projector tests whether the object consists of a
matrix that is square, symmetric and idempotent. In checking
symmetry and idempotency, the equality of the matrix with either its
transpose or square is tested. In this, a difference in elements is
considered to be zero if it is less than daeTolerance, which is
initially set to .Machine$double.eps ^ 0.5 (about 1.5E-08).
The function set.daeTolerance can
be used to change daeTolerance.
TRUE or FALSE depending on whether the object is a valid object of class
"projector".
The degrees of freedom are not checked. correct.degfree
can be used to check them.
Chris Brien
projector, correct.degfree in package dae.
projector for further information about this class.
## set up a 2 x 2 mean operator that takes the mean of a vector of 2 values
m <- matrix(rep(0.5,4), nrow=2)
## create an object of class projector
proj.m <- projector(m)
## check that it is a valid projector
is.projector(proj.m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.