LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LSHSignature Class Reference

#include <linguisticProcessing/core/WordSenseAnalysis/lshsignature.h>

Public Types

typedef uint64_t base
 

Public Member Functions

 LSHSignature (int bitLength)
 
 LSHSignature (const LSHSignature &s)
 
LSHSignature & operator= (const LSHSignature &s)
 
 ~LSHSignature ()
 
base * getData ()
 
int getBitLength ()
 
void setBit (uint b)
 
void unsetBit (uint b)
 
bool getBit (uint b)
 
void merge (std::vector< LSHSignature > &sigs)
 
void print (double rank, int limit)
 
void xorX (LSHSignature &signature)
 
int bitCount ()
 
int bitCount64 (int where)
 
bool comparePermutedBits (LSHSignature &s, std::vector< int > &permutations)
 

Detailed Description

Member Typedef Documentation

◆ base

typedef uint64_t LSHSignature::base

Definition at line 36 of file lshsignature.h.

Constructor & Destructor Documentation

◆ LSHSignature() [1/2]

LSHSignature::LSHSignature ( int  bitLength)

Definition at line 20 of file lshsignature.cpp.

◆ LSHSignature() [2/2]

LSHSignature::LSHSignature ( const LSHSignature &  s)

Definition at line 36 of file lshsignature.cpp.

◆ ~LSHSignature()

LSHSignature::~LSHSignature ( )

Definition at line 30 of file lshsignature.cpp.

Member Function Documentation

◆ bitCount()

int LSHSignature::bitCount ( )

Definition at line 139 of file lshsignature.cpp.

◆ bitCount64()

int LSHSignature::bitCount64 ( int  where)

Definition at line 191 of file lshsignature.cpp.

◆ comparePermutedBits()

bool LSHSignature::comparePermutedBits ( LSHSignature &  s,
std::vector< int > &  permutations 
)

Definition at line 239 of file lshsignature.cpp.

◆ getBit()

bool LSHSignature::getBit ( uint  b)

Definition at line 84 of file lshsignature.cpp.

◆ getBitLength()

int LSHSignature::getBitLength ( )

Definition at line 69 of file lshsignature.cpp.

◆ getData()

LSHSignature::base * LSHSignature::getData ( )

Definition at line 64 of file lshsignature.cpp.

◆ merge()

void LSHSignature::merge ( std::vector< LSHSignature > &  sigs)

Definition at line 90 of file lshsignature.cpp.

◆ operator=()

LSHSignature & LSHSignature::operator= ( const LSHSignature &  s)

Definition at line 47 of file lshsignature.cpp.

◆ print()

void LSHSignature::print ( double  rank,
int  limit 
)

Definition at line 112 of file lshsignature.cpp.

◆ setBit()

void LSHSignature::setBit ( uint  b)

Definition at line 74 of file lshsignature.cpp.

◆ unsetBit()

void LSHSignature::unsetBit ( uint  b)

Definition at line 79 of file lshsignature.cpp.

◆ xorX()

void LSHSignature::xorX ( LSHSignature &  signature)

Definition at line 125 of file lshsignature.cpp.


The documentation for this class was generated from the following files: