C# Class natix.SimilaritySearch.BinQ8HammingSpace

Hamming space for bit strings
Inheritance: MetricDB
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Свойство Type Description
symlen int

Protected Properties

Свойство Type Description
numdist long

Méthodes publiques

Méthode Description
Add ( object a ) : int
BinQ8HammingSpace ( ) : System
BinQ8HammingSpace ( int symlen ) : System

Constructor

Build ( string filename ) : void

Read the database from a listing file (one filename per line)

Dist ( object a, object b ) : double

Wrap the distance to the given BinDist distance.

DistHamming ( byte a, byte b ) : double
Load ( BinaryReader Input ) : void
LoadObjectFromFile ( string name, bool save_binary_cache ) : byte[]
ObjectToAsciiString ( int docid ) : string

Converts an object to Ascii '0' and '1' using an object id

Parse ( string line ) : object

Converts 'name' into an object

ParseFromFile ( string name ) : object
ParseObjectFromString ( string data ) : byte[]
Save ( BinaryWriter Output ) : void
ToAsciiString ( IList b ) : string

Converts an object to a readeable representation in ascii '0' and '1'

ToAsciiString ( UInt16 b ) : string

Returns the string representation of an UInt16

ToAsciiString ( UInt32 b ) : string

Returns the string representation of an UInt32

ToAsciiString ( UInt64 b ) : string

Converts an UInt64 to binary (ascii format)

ToAsciiString ( byte b ) : string

Returns a string representation of a single byte

ToAsciiString ( int d ) : string
this ( int docid ) : object

Indexer to retrieve an object

Method Details

Add() public méthode

public Add ( object a ) : int
a object
Résultat int

BinQ8HammingSpace() public méthode

public BinQ8HammingSpace ( ) : System
Résultat System

BinQ8HammingSpace() public méthode

Constructor
public BinQ8HammingSpace ( int symlen ) : System
symlen int
Résultat System

Build() public méthode

Read the database from a listing file (one filename per line)
public Build ( string filename ) : void
filename string
Résultat void

Dist() public méthode

Wrap the distance to the given BinDist distance.
public Dist ( object a, object b ) : double
a object
b object
Résultat double

DistHamming() public static méthode

public static DistHamming ( byte a, byte b ) : double
a byte
b byte
Résultat double

Load() public méthode

public Load ( BinaryReader Input ) : void
Input BinaryReader
Résultat void

LoadObjectFromFile() public static méthode

public static LoadObjectFromFile ( string name, bool save_binary_cache ) : byte[]
name string
save_binary_cache bool
Résultat byte[]

ObjectToAsciiString() public méthode

Converts an object to Ascii '0' and '1' using an object id
public ObjectToAsciiString ( int docid ) : string
docid int /// The object identifier /// A ///
Résultat string

Parse() public méthode

Converts 'name' into an object
public Parse ( string line ) : object
line string
Résultat object

ParseFromFile() public méthode

public ParseFromFile ( string name ) : object
name string
Résultat object

ParseObjectFromString() public static méthode

public static ParseObjectFromString ( string data ) : byte[]
data string
Résultat byte[]

Save() public méthode

public Save ( BinaryWriter Output ) : void
Output BinaryWriter
Résultat void

ToAsciiString() public static méthode

Converts an object to a readeable representation in ascii '0' and '1'
public static ToAsciiString ( IList b ) : string
b IList
Résultat string

ToAsciiString() public static méthode

Returns the string representation of an UInt16
public static ToAsciiString ( UInt16 b ) : string
b UInt16 /// A ///
Résultat string

ToAsciiString() public static méthode

Returns the string representation of an UInt32
public static ToAsciiString ( UInt32 b ) : string
b UInt32 /// A ///
Résultat string

ToAsciiString() public static méthode

Converts an UInt64 to binary (ascii format)
public static ToAsciiString ( UInt64 b ) : string
b UInt64
Résultat string

ToAsciiString() public static méthode

Returns a string representation of a single byte
public static ToAsciiString ( byte b ) : string
b byte
Résultat string

ToAsciiString() public static méthode

public static ToAsciiString ( int d ) : string
d int
Résultat string

this() public méthode

Indexer to retrieve an object
public this ( int docid ) : object
docid int
Résultat object

Property Details

numdist protected_oe property

protected long numdist
Résultat long

symlen public_oe property

Symbol's length in bytes
The length in bytes of each symbol. For general data this should be 1, for audio MBSES this should be 3.
public int symlen
Résultat int