| MCR-class {tofsims} | R Documentation |
Class MCR contains methods for 'Multivariate Curve
Resolution by Alternate Least Squares'
opaMCR is a MCR-ALS function using the Orthogonal Projection Approach from
opaMCR(dataObject, opaComps, maxiter = 10)
dataObject |
object of class MassImage |
opaComps |
numeric number of components for the opa method |
maxiter |
numeric how many iterations |
Class MCR contains methods for 'Multivariate Curve
Resolution by Alternate Least Squares'
opaMCR uses the function ChemometricsWithR::opa() (Orthogonal Projection Approach,
CRAN package 'ChemometricsWithR') for start estimates of pure spectras and
ALS::als() (CRAN package 'ALS') as MCR-ALS implementation. This method is doing
fine with images up to 256x256 pixels. For larger images, memory usage
becomes unreasonably high.
object of class MCR
RSSnumeric residual sum of squares
residsmatrix with residuals
itersnumeric number of iterations
Lorenz Gerber <lorenz.gerber@slu.se>
testImage<-MassImage('dummy')
testImage<-opaMCR(testImage, 2, 2)
image(analysis(testImage,1), comp = 1)
## Not run:
library(tofsimsData)
data(tofsimsData)
testImage<-MCR(testImage, 5, 5)
image(analysis(testImage,1), comp = 1)
## End(Not run)