Skip to contents

[Experimental] Use LshIndex instead.

Usage

rs_lsh_build(
  data,
  metric,
  num_tables,
  bits_per_hash,
  slot_bits,
  seed,
  precision,
  verbose
)

Arguments

data

Numeric matrix. Samples x features.

metric

String. One of c("euclidean", "cosine").

num_tables

Integer. Independent hash tables.

bits_per_hash

Integer. Bits per bucket code.

slot_bits

Integer or NULL. Bits per quantised projection.

seed

Integer. Random seed.

precision

String. "float" or "double".

verbose

Integer. 0 silent, 1 progress, 2 detailed.

Value

External pointer to the index.