C# Class natix.SimilaritySearch.DocumentDB

The document's space
Inheritance: MetricDB
Mostra file Open project: sadit/natix Class Usage Examples

Public Properties

Property Type Description
DOCS List

Public Methods

Method Description
Add ( object a ) : int
Build ( string name, IList filenames ) : void
Build ( string name, List docs ) : void
Dist ( object _v1, object _v2 ) : double

The distance function (angle between vectors)

DocumentDB ( ) : System

Constructor

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

Parse an string into the document's vector

ParseFromFile ( string name ) : Tdoc

Parse document vector from file

ParseFromString ( string data ) : Tdoc

Load vectors from ascii string

Save ( BinaryWriter Output ) : void
this ( int docid ) : object

Indexer to retrieve an object by id

Method Details

Add() public method

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

Build() public method

public Build ( string name, IList filenames ) : void
name string
filenames IList
return void

Build() public method

public Build ( string name, List docs ) : void
name string
docs List
return void

Dist() public method

The distance function (angle between vectors)
public Dist ( object _v1, object _v2 ) : double
_v1 object
_v2 object
return double

DocumentDB() public method

Constructor
public DocumentDB ( ) : System
return System

Load() public method

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

Parse() public method

Parse an string into the document's vector
public Parse ( string s ) : object
s string
return object

ParseFromFile() public method

Parse document vector from file
public ParseFromFile ( string name ) : Tdoc
name string
return Tdoc

ParseFromString() public method

Load vectors from ascii string
public ParseFromString ( string data ) : Tdoc
data string
return Tdoc

Save() public method

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

this() public method

Indexer to retrieve an object by id
public this ( int docid ) : object
docid int
return object

Property Details

DOCS public_oe property

public List DOCS
return List