#' fast modified band depth calculation for fda
#'
#' Method for fast modified band depth (fMBD) calculation
#'
#' @param data name of dataset
#'
#' @author Ying Sun and Marc G.Genton
#'
fMBD=function(data){
p=dim(data)[1]
n=dim(data)[2]
rmat=apply(data,1,rank)
down=rmat-1
up=n-rmat
(rowSums(up*down)/p+n-1)/combinat(n,2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.