correct.degfree | R Documentation |
Check the degrees of freedom in an object of class "projector
".
correct.degfree(object)
object |
An object of class " |
The degrees of freedom of the projector are obtained as its number of nonzero
eigenvalues. An eigenvalue is regarded as 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 correct degrees of freedom have been
stored in the object of class "projector
".
Chris Brien
degfree
, projector
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 a projector based on the matrix m
proj.m <- new("projector", data=m)
## add its degrees of freedom
degfree(proj.m) <- 1
## check degrees of freedom are correct
correct.degfree(proj.m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.