Calculate Memory-Aware Sample Size Limit (Internal)
Source:R/career_clustering.R
dot-calculate_memory_aware_limit.RdDetermines the maximum sample size for distance matrix calculations based on available system memory. This prevents memory exhaustion when computing silhouette scores or other metrics requiring O(n²) distance matrices.
Usage
.calculate_memory_aware_limit(
memory_fraction = 0.33,
p = 10,
method = c("clustering", "silhouette"),
verbose = FALSE
)