C# Class natix.SimilaritySearch.StringSpace

String space
Inheritance: MetricDB
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Свойство Type Description
seqs List

Protected Properties

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

Méthodes publiques

Méthode 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

Méthode Description
minimum3 ( int a, int b, int c ) : int

Method Details

Add() public méthode

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

Build() public méthode

public Build ( string seqlist ) : void
seqlist string
Résultat void

Build() public méthode

public Build ( string outname, IList seqs ) : void
outname string
seqs IList
Résultat void

Dice() public static méthode

Hamming distance
public static Dice ( string a, string b ) : double
a string
b string
Résultat double

Dist() public méthode

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

Hamming() public static méthode

Hamming distance for Generic Datatype
public static Hamming ( string a, string b ) : double
a string
b string
Résultat double

Intersection() public static méthode

Knr Intersection distance
public static Intersection ( string a, string b ) : double
a string
b string
Résultat double

Jaccard() public static méthode

Jaccard's distance
public static Jaccard ( string a, string b ) : double
a string
b string
Résultat double

LCS() public static méthode

LCS over Levenshtein
public static LCS ( string a, string b ) : double
a string
b string
Résultat double

Levenshtein() public static méthode

Edit distance
public static Levenshtein ( string a, string b ) : double
a string
b string
Résultat double

Levenshtein() public static méthode

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
Résultat int

LexicographicCompare() public static méthode

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
Résultat int

LexicographicCompare() public static méthode

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

Load() public méthode

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
Résultat void

Parse() public méthode

Parse an string into the object representation
public Parse ( string s ) : object
s string
Résultat object

PrefixLength() public static méthode

Knr prefix length distance
public static PrefixLength ( string a, string b ) : double
a string
b string
Résultat double

Save() public méthode

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
Résultat void

StringSpace() public méthode

Constructor
public StringSpace ( ) : System
Résultat System

this() public méthode

Retrieves the object associated to object id docid
public this ( int docid ) : object
docid int
Résultat object

Property Details

numdist protected_oe property

protected long numdist
Résultat long

seqs public_oe property

public List seqs
Résultat List