gr.demokritos.iit.jinsect.documentModel.representations
Class NGramGaussNormDocument

java.lang.Object
  extended by gr.demokritos.iit.jinsect.documentModel.documentTypes.NGramDocument
      extended by gr.demokritos.iit.jinsect.documentModel.representations.NGramGaussNormDocument
All Implemented Interfaces:
ILoadableTextPrint, ITextPrint, java.io.Serializable

public class NGramGaussNormDocument
extends NGramDocument

See Also:
Serialized Form

Field Summary
protected  DocumentNGramGaussNormGraph Graph
           
 
Fields inherited from class gr.demokritos.iit.jinsect.documentModel.documentTypes.NGramDocument
Histogram
 
Constructor Summary
NGramGaussNormDocument()
          Creates a new instance, using graphs with Gauss-function-normalized edge weights for neighbouring.
NGramGaussNormDocument(int iMinGraphSize, int iMaxGraphSize, int iGraphCorrelationWindow, int iMinHistogramSize, int iMaxHistogramSize)
           
 
Method Summary
 void clear()
           
 DocumentNGramGaussNormGraph getDocumentGraph()
          Should return the graph corresponding to the text representation.
 void loadDataStringFromFile(java.lang.String sFilename)
          Should load the given file into a text print representation.
static void main(java.lang.String[] sArgs)
           
 void setDataString(java.lang.String sDataString)
          Creates the representation of a given string (text) and uses it to describe the document.
 void setDocumentGraph(DocumentNGramGaussNormGraph idgNew)
          Set the graph to a DocumentNGramGaussNormGraph graph supplied.
 
Methods inherited from class gr.demokritos.iit.jinsect.documentModel.documentTypes.NGramDocument
getDataString, getDocumentHistogram, length, mergeWith, prune, setDocumentGraph, setDocumentHistogram
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Graph

protected DocumentNGramGaussNormGraph Graph
Constructor Detail

NGramGaussNormDocument

public NGramGaussNormDocument()
Creates a new instance, using graphs with Gauss-function-normalized edge weights for neighbouring.


NGramGaussNormDocument

public NGramGaussNormDocument(int iMinGraphSize,
                              int iMaxGraphSize,
                              int iGraphCorrelationWindow,
                              int iMinHistogramSize,
                              int iMaxHistogramSize)
Method Detail

getDocumentGraph

public DocumentNGramGaussNormGraph getDocumentGraph()
Description copied from interface: ITextPrint
Should return the graph corresponding to the text representation.

Specified by:
getDocumentGraph in interface ITextPrint
Overrides:
getDocumentGraph in class NGramDocument
Returns:
A document n-gram graph representing a text.

setDocumentGraph

public void setDocumentGraph(DocumentNGramGaussNormGraph idgNew)
Set the graph to a DocumentNGramGaussNormGraph graph supplied. If a type of

Parameters:
idgNew - The graph to use.

main

public static void main(java.lang.String[] sArgs)

loadDataStringFromFile

public void loadDataStringFromFile(java.lang.String sFilename)
Description copied from interface: ILoadableTextPrint
Should load the given file into a text print representation.

Specified by:
loadDataStringFromFile in interface ILoadableTextPrint
Overrides:
loadDataStringFromFile in class NGramDocument

setDataString

public void setDataString(java.lang.String sDataString)
Description copied from class: NGramDocument
Creates the representation of a given string (text) and uses it to describe the document.

Overrides:
setDataString in class NGramDocument
Parameters:
sDataString - The given text.

clear

public void clear()