| components.TRMF | R Documentation |
This function returns the factors (Xm, Fm) from a trained TRMF object
## S3 method for class 'TRMF'
components(object, XorF = c("Xm","Fm"), ...)
object |
trained TRMF object |
XorF |
which factor to return |
... |
ignored |
Returns the matrix factors. Could also use object$Factors$Xm, object$Factors$Fm . If matrix normalization was used in create_TRMF, Xm%*%Fm could look much different than the input data matrix.
A matrix.
Chad Hammerquist
create_TRMF, TRMF_columns, TRMF_trend
# create test data xm = poly(x = (-10:10)/10,degree=4) fm = matrix(rnorm(40),4,10) Am = xm%*%fm+rnorm(210,0,.2) # create model obj = create_TRMF(Am) out = train(obj) plot(out) components(out,"Xm")