Rcpp_fit: Hash samples in bins

Description Arguments Details Note Examples

Description

Hashing samples into bins, using Sketching as hash function. This function repeats hashing process L times by sampling M dimensions at a time and hashes samples into one of H bins.

Arguments

data

On which rarity score needs to be computed. Required to be a matrix. (can be converted to matrix with as.matrix)

Details

For usage see example.

Note

This function does not do any preprocessing, so preprocessed data must be passed if required.

Examples

1
2
3
4
5
6
7
8
  ## Not run: 

     ## Creating class object with required arguments
     model <- new(FiRE::FiRE, L, M)
     model$fit(data)

  
## End(Not run)

FiRE documentation built on Sept. 6, 2021, 5:06 p.m.