R/param_min_dist.R

Defines functions min_dist

Documented in min_dist

#' Parameter for the effective minimum distance between embedded points
#'
#' Used in `embed::step_umap()`.
#'
#' @inheritParams Laplace
#' @examples
#' min_dist()
#' @export
min_dist <- function(range = c(-4, 0), trans = log10_trans()) {
  new_quant_param(
    type = "double",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(min_dist = "Min Distance between Points"),
    finalize = NULL
  )
}

Try the dials package in your browser

Any scripts or data that you put into this service are public.

dials documentation built on April 3, 2023, 5:43 p.m.