C# Class natix.CompactDS.InvIndexSketches

Inheritance: IRankSelectSeq
Show file Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
AlphabetBlock int
FreqPerm IList
InvIndex IList
N int
Sketch ListSDiff64

Public Methods

Method Description
Access ( int pos ) : int
AccessFromSketch ( int pos, int sketch_block ) : int
AccessRange ( int start, int length ) : IEnumerable
AccessRangeGeneric ( int start, int length ) : IEnumerable
Build ( IList sequence, int alphabet_size, int alphabet_block ) : void

Builds the index for the sequence

CreateSketch ( IList invindex, int maxvalue ) : void
InvIndexSketches ( ) : System
Load ( BinaryReader Input ) : void
PermSortByFreq ( IList invindex, int _maxvalue ) : void
Rank ( int symbol, int pos ) : int
Save ( BinaryWriter Output ) : void

Save the index

Select ( int symbol, int rank ) : int
Unravel ( int symbol ) : Bitmap

Method Details

Access() public method

public Access ( int pos ) : int
pos int
return int

AccessFromSketch() public method

public AccessFromSketch ( int pos, int sketch_block ) : int
pos int
sketch_block int
return int

AccessRange() public method

public AccessRange ( int start, int length ) : IEnumerable
start int
length int
return IEnumerable

AccessRangeGeneric() public method

public AccessRangeGeneric ( int start, int length ) : IEnumerable
start int
length int
return IEnumerable

Build() public method

Builds the index for the sequence
public Build ( IList sequence, int alphabet_size, int alphabet_block ) : void
sequence IList
alphabet_size int
alphabet_block int
return void

CreateSketch() public method

public CreateSketch ( IList invindex, int maxvalue ) : void
invindex IList
maxvalue int
return void

InvIndexSketches() public method

public InvIndexSketches ( ) : System
return System

Load() public method

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

PermSortByFreq() public method

public PermSortByFreq ( IList invindex, int _maxvalue ) : void
invindex IList
_maxvalue int
return void

Rank() public method

public Rank ( int symbol, int pos ) : int
symbol int
pos int
return int

Save() public method

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

Select() public method

public Select ( int symbol, int rank ) : int
symbol int
rank int
return int

Unravel() public method

public Unravel ( int symbol ) : Bitmap
symbol int
return Bitmap

Property Details

AlphabetBlock public property

The size of the block for the sketch
public int AlphabetBlock
return int

FreqPerm public property

Vocabulary sorted by frequency
public IList FreqPerm
return IList

InvIndex public property

Inverted index
public IList InvIndex
return IList

N public property

The size in words (entities) of the text
public int N
return int

Sketch public property

An sketch of the text
public ListSDiff64 Sketch
return ListSDiff64