psuedo_density_mode_cluster_1d: Mode clustering for euclidean data (distance based)

Description Usage Arguments Details Value

View source: R/conformal_prediction.R

Description

Walks up a guassian kernel density estimate to find modes

Usage

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
)

Arguments

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)

Details

Similar to more complex code developed by Yen-Chi Chen and Chris Genovese

Value

list of :


benjaminleroy/simulationBands documentation built on Dec. 19, 2021, 8:41 a.m.