GetShortHash: GetShortHash

Description Usage Arguments Value Examples

View source: R/densefly.R

Description

GetShortHash

Usage

1
GetShortHash(activations, nProj)

Arguments

activations

an activation matrix, each row represents a data entry's activations

nProj

the number of random projections

Value

a binary matrix, each row is an embeded data entry

Examples

1
2
3
activations<-c(-3, -2, 1, 0, 5,   -1, 2, 1, 0, 7,   0, -2, 0, 0, 1)
activations<-as.matrix(t(activations))
GetShortHash(activations,5) # it is supposed to be a matrix of (1,1,0)

chansigit/scFly documentation built on Nov. 4, 2019, 8:49 a.m.