reconstruction_error | R Documentation |
Projects spectra onto a PLS space and then reconstructs it back.
reconstruction_error(x,
projection_mat,
xloadings,
scale,
Xcenter,
Xscale,
scale_back = FALSE)
x |
a matrix to project. |
projection_mat |
the projection matrix generated by the |
xloadings |
the loadings matrix generated by the |
scale |
logical indicating if scaling is required |
Xcenter |
a matrix of one row with the centering values |
Xscale |
a matrix of one row with the scaling values |
scale_back |
compute the reconstruction error after de-centering the data and de-scaling it. |
a matrix of 1 row and 1 column.
Leonardo Ramirez-Lopez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.