The class "
projector" is the
subclass of matrices that are square, symmetric and idempotent.
is.projector is the membership function for this class.
degfree is the extractor function for the degrees of freedom and
degfree<- is the replacement function.
correct.degfree checks whether the stored degrees of freedom are correct.
An object of class "
projector" consists of a
square, symmetric, idempotent matrix along with its degrees of freedom (rank).
Objects can be created by calls of the form
new("projector", data, nrow, ncol, byrow, dimnames, ...).
However, this does not add the degrees of freedom to the object. These can be
added using the replacement function
Alternatively, the function
projector creates the new object
matrix, adding its degrees of freedom at the same time.
Object of class
Object of class
matrix", from data part.
array", by class "matrix", distance 2.
structure", by class "matrix", distance 3.
vector", by class "matrix", distance 4, with explicit coerce.
signature(from = "projector", to = "matrix")
signature(x = "projector")
signature(object = "projector")
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
showClass("projector") ## 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) ## create a projector based on the matrix m proj.m <- new("projector", data=m) ## add its degrees of freedom and print the projector degfree(proj.m) <- proj.m
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.