Description Usage Arguments Details Value
View source: R/advanced.matrix.functions.R
Shift two matrices against each other and apply a function to the overlap
1 2 | matrices.shift.apply.function(mbase, mshift, func, keepbasedim = FALSE,
radial = FALSE, na.value = -99999)
|
mshift, mbase |
matrices of to be shifted against each other. |
func |
character. One of "rmse" or "multav". See details. |
keepbasedim |
logical. Only shift |
radial |
logical. Only shift |
na.value |
integer. The value used internally in FORTRAN for |
Matrix mshift is shifted against mbase and the overlapping matrices passed to fun.
The return value of selected function func is put into the resulting matrix at the position of the shift.
This function uses a FORTRAN implementation for efficiency.
The func argument specifies which type of function is to be
applied to the overlap. It can be:
rmse: The Root Mean Square Error RMSE is calculated on the overlap.
Handy for finding the shift of the maximum resemblance of mbase and mshift.
multav: The overlapping matrix parts are multiplicated elementwise and then averaged.
Handy for sliding means.
a matrix filled with the results of func and row- and colnames that indicate the shift of mshift against mbase.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.