LshIndex constructor

LshIndex(
  1. int dim, {
  2. int nbits = 64,
  3. int seed = 1234,
})

Implementation

LshIndex(
  this.dim, {
  this.nbits = 64,
  int seed = 1234,
})  : codeSize = (nbits + 7) ~/ 8,
      _projectors = _randomGaussianMatrix(nbits, dim, seed);