C# Class natix.SimilaritySearch.StringSpace

String space
Inheritance: MetricDB
Datei anzeigen Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
seqs List

Protected Properties

Property Type Description
numdist long

Public Methods

Method Description
Add ( object u ) : int
Build ( string seqlist ) : void
Build ( string outname, IList seqs ) : void
Dice ( string a, string b ) : double

Hamming distance

Dist ( object a, object b ) : double

Wrapper to the real string distance

Hamming ( string a, string b ) : double

Hamming distance for Generic Datatype

Intersection ( string a, string b ) : double

Knr Intersection distance

Jaccard ( string a, string b ) : double

Jaccard's distance

LCS ( string a, string b ) : double

LCS over Levenshtein

Levenshtein ( string a, string b ) : double

Edit distance

Levenshtein ( string a, string b, byte inscost, byte delcost, byte repcost ) : int

Levenshtein distance for generic datatype. It has customizable costs

LexicographicCompare ( string a, int aStart, int aEnd, string b, int bStart, int bEnd ) : int

Compare to arrays lexicographically, returns an integer representing something like a - b

LexicographicCompare ( string a, string b ) : int

lexicographic comparison, starting always at position 0 of every sequence

Load ( BinaryReader Input ) : void
Parse ( string s ) : object

Parse an string into the object representation

PrefixLength ( string a, string b ) : double

Knr prefix length distance

Save ( BinaryWriter Output ) : void
StringSpace ( ) : System

Constructor

this ( int docid ) : object

Retrieves the object associated to object id docid

Private Methods

Method Description
minimum3 ( int a, int b, int c ) : int

Method Details

Add() public method

public Add ( object u ) : int
u object
return int

Build() public method

public Build ( string seqlist ) : void
seqlist string
return void

Build() public method

public Build ( string outname, IList seqs ) : void
outname string
seqs IList
return void

Dice() public static method

Hamming distance
public static Dice ( string a, string b ) : double
a string
b string
return double

Dist() public method

Wrapper to the real string distance
public Dist ( object a, object b ) : double
a object
b object
return double

Hamming() public static method

Hamming distance for Generic Datatype
public static Hamming ( string a, string b ) : double
a string
b string
return double

Intersection() public static method

Knr Intersection distance
public static Intersection ( string a, string b ) : double
a string
b string
return double

Jaccard() public static method

Jaccard's distance
public static Jaccard ( string a, string b ) : double
a string
b string
return double

LCS() public static method

LCS over Levenshtein
public static LCS ( string a, string b ) : double
a string
b string
return double

Levenshtein() public static method

Edit distance
public static Levenshtein ( string a, string b ) : double
a string
b string
return double

Levenshtein() public static method

Levenshtein distance for generic datatype. It has customizable costs
public static Levenshtein ( string a, string b, byte inscost, byte delcost, byte repcost ) : int
a string
b string
inscost byte
delcost byte
repcost byte
return int

LexicographicCompare() public static method

Compare to arrays lexicographically, returns an integer representing something like a - b
public static LexicographicCompare ( string a, int aStart, int aEnd, string b, int bStart, int bEnd ) : int
a string
aStart int
aEnd int
b string
bStart int
bEnd int
return int

LexicographicCompare() public static method

lexicographic comparison, starting always at position 0 of every sequence
public static LexicographicCompare ( string a, string b ) : int
a string
b string
return int

Load() public method

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
return void

Parse() public method

Parse an string into the object representation
public Parse ( string s ) : object
s string
return object

PrefixLength() public static method

Knr prefix length distance
public static PrefixLength ( string a, string b ) : double
a string
b string
return double

Save() public method

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
return void

StringSpace() public method

Constructor
public StringSpace ( ) : System
return System

this() public method

Retrieves the object associated to object id docid
public this ( int docid ) : object
docid int
return object

Property Details

numdist protected_oe property

protected long numdist
return long

seqs public_oe property

public List seqs
return List