C# Class natix.SimilaritySearch.KnrSeqSearch

Inheritance: BasicIndex
Datei anzeigen Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
K int
MAXCAND int
R Index
SEQ Sequence

Public Methods

Method Description
Build ( KnrSeqSearch other ) : void
Build ( MetricDB db, Index refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
Build ( MetricDB db, KnrFP knrfp, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
Build ( MetricDB db, Random rand, int num_refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
BuildApprox ( MetricDB db, Random rand, int num_refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
GetKnr ( object q ) : int[]
GetSortedByPrefix ( SequenceBuilder seq_builder = null, ListIBuilder list_builder = null ) : KnrSeqSearch
GetStoredKnr ( int docid ) : int[]
KnrSeqSearch ( ) : System
KnrSeqSearch ( KnrSeqSearch other ) : System
Load ( BinaryReader Input ) : void
Save ( BinaryWriter Output ) : void
SearchKNN ( int qseq, object q, IResult res, int maxcand ) : IResult
SearchKNN ( object q, int knn, IResult res ) : IResult

Protected Methods

Method Description
GetCandidates ( int qseq, int maxcand ) : IResult
GetCandidatesPlain ( int qseq, int maxcand ) : IResult

Method Details

Build() public method

public Build ( KnrSeqSearch other ) : void
other KnrSeqSearch
return void

Build() public method

public Build ( MetricDB db, Index refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
db MetricDB
refs Index
K int
maxcand int
seq_builder SequenceBuilder
return void

Build() public method

public Build ( MetricDB db, KnrFP knrfp, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
db MetricDB
knrfp KnrFP
maxcand int
seq_builder SequenceBuilder
return void

Build() public method

public Build ( MetricDB db, Random rand, int num_refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
db MetricDB
rand System.Random
num_refs int
K int
maxcand int
seq_builder SequenceBuilder
return void

BuildApprox() public method

public BuildApprox ( MetricDB db, Random rand, int num_refs, int K = 7, int maxcand = 1024, SequenceBuilder seq_builder = null ) : void
db MetricDB
rand System.Random
num_refs int
K int
maxcand int
seq_builder SequenceBuilder
return void

GetCandidates() protected method

protected GetCandidates ( int qseq, int maxcand ) : IResult
qseq int
maxcand int
return IResult

GetCandidatesPlain() protected method

protected GetCandidatesPlain ( int qseq, int maxcand ) : IResult
qseq int
maxcand int
return IResult

GetKnr() public method

public GetKnr ( object q ) : int[]
q object
return int[]

GetSortedByPrefix() public method

public GetSortedByPrefix ( SequenceBuilder seq_builder = null, ListIBuilder list_builder = null ) : KnrSeqSearch
seq_builder SequenceBuilder
list_builder ListIBuilder
return KnrSeqSearch

GetStoredKnr() public method

public GetStoredKnr ( int docid ) : int[]
docid int
return int[]

KnrSeqSearch() public method

public KnrSeqSearch ( ) : System
return System

KnrSeqSearch() public method

public KnrSeqSearch ( KnrSeqSearch other ) : System
other KnrSeqSearch
return System

Load() public method

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

Save() public method

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

SearchKNN() public method

public SearchKNN ( int qseq, object q, IResult res, int maxcand ) : IResult
qseq int
q object
res IResult
maxcand int
return IResult

SearchKNN() public method

public SearchKNN ( object q, int knn, IResult res ) : IResult
q object
knn int
res IResult
return IResult

Property Details

K public_oe property

public int K
return int

MAXCAND public_oe property

public int MAXCAND
return int

R public_oe property

public Index R
return Index

SEQ public_oe property

public Sequence SEQ
return Sequence