transform {dsfa} | R Documentation |
Transforms a matrix via the specified function.
transform(x, type, par, deriv_order)
x |
numeric matrix to be transformed. |
type |
string, specifies the transformation function. Available are:
|
par |
numeric vector, additional parameters, e.g. min and max for |
deriv_order |
integer; maximum order of derivative. Available are |
Takes the numeric matrix x as an input for the function specified by type
and evaluates it together with the derivatives.
Returns an object of class derivs
.
A<-matrix(c(1:9)/10, ncol=3)
A_mat<-list2derivs(list(A, A^0, A^2, A^3, A^4), deriv_order=4)
transform(x=transform(x = A, type="exp", par=0, deriv_order=4), type="log", deriv_order=4, par = 0)