powered by
Returns the curve with maximum depth using the specified depth method.
median( fdataobj, method = c("FM", "mode", "RP", "RT", "BD", "MBD", "FSD", "KFSD", "RPD"), ... )
The curve (as fdata object) with maximum depth.
An object of class 'fdata'.
Depth method to use. One of "FM", "mode", "RP", "RT", "BD", "MBD", "FSD", "KFSD", or "RPD". Default is "FM".
Additional arguments passed to the depth function.
fd <- fdata(matrix(rnorm(100), 10, 10)) med <- median(fd) med_mode <- median(fd, method = "mode")
Run the code above in your browser using DataLab