brightness_vec <- function(vec) {
var(vec) / mean(vec)
}
brightness_rows <- function(mat, parallel = FALSE) {
n_cores <- translate_parallel(parallel)
RcppParallel::setThreadOptions(n_cores)
on.exit(RcppParallel::setThreadOptions(RcppParallel::defaultNumThreads()))
brightness_rows_(mat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.