[][src]Function lsh_rs::stats::optimize_srp_params

pub fn optimize_srp_params(
    delta: f64,
    cosine_sim: f64,
    dim: usize,
    k: &[usize],
    vs: &[DataPoint]
) -> Result<Vec<OptRes>>

Does a grid search over parameter K where L is determined by the estimate_l function.

Arguments

  • delta - Probability of not returning NN. P(NN) = 1 - δ
  • cosine_sim - Cosine similarity distance within which the nearest neighbor should exist.
  • dim - Dimension of the data points.
  • vs - Data points.