averageMatrices | R Documentation |
Internal soundgen function.
averageMatrices(mat_list, rFun = "max", cFun = "median", reduceFun = "+")
mat_list |
a list of matrices to aggregate (eg spectrograms or modulation spectra) |
rFun |
cFun functions used to determine the number of rows and columns in the result |
reduceFun |
function used to aggregate |
Takes a list of matrices (normally modulation spectra), interpolates them to have the same size, and then reduces them (eg takes the average).
mat_list = list(
matrix(1:30, nrow = 5),
matrix(80:17, nrow = 8)
)
soundgen:::averageMatrices(mat_list)
soundgen:::averageMatrices(mat_list, cFun = 'max', reduceFun = '*')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.