| .tukey_depth_cpp | R Documentation |
Computes the Tukey halfspace depth of one or more query points with respect
to a reference distribution estimated from data, using an adaptive
random projection approximation.
.tukey_depth_cpp(
x,
data,
tol = 0.01,
batch_size = 100L,
min_batches = 5L,
patience = 3L,
seed = 42L
)
x |
Numeric matrix of query points (m x d), or a numeric vector of length d for a single query point. |
data |
Numeric matrix of reference data (n x d). |
tol |
Convergence tolerance. Default 0.01. |
batch_size |
Number of random projections per batch. Default 100. |
min_batches |
Minimum batches before checking convergence. Default 5. |
patience |
Consecutive stable batches to declare convergence. Default 3. |
seed |
Integer random seed for reproducibility. Default 42. |
Numeric vector of depth values in [0, 0.5], one per query point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.