Extracts the modes from a copre_result
or seqre_result
object.
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)# S3 method for seqre_result
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)
# S3 method for grideval_result
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)
n_modes(obj, mean = FALSE, grd = NULL, anti = FALSE)
A matrix of modes values in the support of the copre_result
density
A copre_result
or seqre_result
object.
A logical value indicating whether to count the modes of the mean density of each of the individual sampled density.
For seqre_result
, a grid on which to evaluate the object.
A logical value indicating whether to also return the index within
grd
of the discovered modes.
A logical value indicating whether to extract true modes or anti-modes (i.e. local minima of the density function).
modes(seqre_result)
: Mode-counting method for seqre_result
objects.
modes(grideval_result)
: Mode-counting method for grideval_result
objects.
n_modes()
: Counts the modes from a copre_result
or seqre_result
object.