modes {copre} | R Documentation |
Mode Extractor
Description
Extracts the modes from a copre_result
or seqre_result
object.
Usage
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)
## S3 method for class 'seqre_result'
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)
## S3 method for class 'grideval_result'
modes(obj, mean = FALSE, grd = NULL, idx = FALSE, anti = FALSE)
n_modes(obj, mean = FALSE, grd = NULL, anti = FALSE)
Arguments
obj |
A |
mean |
A logical value indicating whether to count the modes of the mean density of each of the individual sampled density. |
grd |
For |
idx |
A logical value indicating whether to also return the index within
|
anti |
A logical value indicating whether to extract true modes or anti-modes (i.e. local minima of the density function). |
Value
A matrix of modes values in the support of the copre_result
density
Methods (by class)
-
modes(seqre_result)
: Mode-counting method forseqre_result
objects. -
modes(grideval_result)
: Mode-counting method forgrideval_result
objects.
Functions
-
n_modes()
: Counts the modes from acopre_result
orseqre_result
object.