Description Usage Arguments Details Value
View source: R/conformal_prediction.R
Walks up a guassian kernel density estimate to find modes
1 2 3 4 5 6 7 8 9 | psuedo_density_mode_cluster_1d(
X_mat,
G_mat = X_mat,
sigma,
maxT = 30,
eps = 1e-05,
verbose = TRUE,
list_out = FALSE
)
|
X_mat |
matrix of data points (in rows), that define the kernel density |
G_mat |
matrix of data points (in rows) that need to be "walked" to their modes |
sigma |
density scalar / sigma value |
maxT |
int, maximum number of iterations |
eps |
float, difference between 2 sequential points for which to stop walking toward the mode for a give point's walk |
verbose |
boolean, if this progression should be verbose |
list_out |
if we should return every step of the process (for fun visualization purposes and visual checks only) |
Similar to more complex code developed by Yen-Chi Chen and Chris Genovese
list of :
matrix of G_mat
points walked up all the way
t
, the actual number of steps taken
if list_out
is TRUE
then list of matrices for each step,
else NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.