|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramDistroGraph
public class DocumentNGramDistroGraph
Field Summary | |
---|---|
protected java.util.HashMap |
EdgeDistros
|
Fields inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph |
---|
CorrelationWindow, DataString, DegradedEdges, MaxSize, MinSize, NGramGraphArray, Normalizer, TextPreprocessor, WordEvaluator |
Constructor Summary | |
---|---|
DocumentNGramDistroGraph()
Creates a new instance of DocumentNGramDistroGraph |
|
DocumentNGramDistroGraph(int iMinSize,
int iMaxSize,
int iCorrelationWindow)
|
Method Summary | |
---|---|
DocumentNGramDistroGraph |
allNotIn(DocumentNGramDistroGraph dgOtherGraph)
Returns all edges not existent in another graph. |
java.lang.Object |
clone()
TODO: CHECK |
void |
createEdgesConnecting(UniqueVertexGraph gGraph,
java.lang.String sStartNode,
java.util.List lOtherNodes,
java.util.HashMap hAppearenceHistogram)
Creates an edge in a graph connecting a selected node to each node in a list of other nodes. |
java.util.Map |
getEdgesToDistros()
Returns a mapping of edges to corresponding distributions. |
protected void |
InitGraphs()
|
DocumentNGramDistroGraph[] |
intersectAndDeltaDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns both the intersection and the difference (inverse of the intersection) graph between the current graph and a given graph. |
DocumentNGramDistroGraph |
intersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns the intersection of two graphs as a new graph, containing only common nodes and their corresponding edges. |
DocumentNGramDistroGraph |
inverseIntersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns the difference (inverse of the intersection) graph between the current graph and a given graph. |
static void |
main(java.lang.String[] sArgs)
|
DocumentNGramDistroGraph |
mergeDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
TODO: Correct Merges the data of [dgOtherGraph] document graph to the data of this graph, by adding all existing edges and summing the histogram values of the edge distros of both graphs. |
void |
setDataString(java.lang.String sDataString)
|
protected void |
updateWeights()
DONE: Checked Updates all weights, based on a function of the corresponding distro. |
Methods inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph |
---|
allNotIn, calcCoexistenceImportance, calcCoexistenceImportance, createGraphs, createWeightedEdgesConnecting, degrade, degredationDegree, deleteItem, getAllNodes, getDataString, getGraphLevel, getGraphLevelByNGramSize, getMaxSize, getMinSize, getWindowSize, intersectGraph, inverseIntersectGraph, isEmpty, length, loadDataStringFromFile, merge, mergeGraph, nullify, prune, toCooccurenceText |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap EdgeDistros
Constructor Detail |
---|
public DocumentNGramDistroGraph()
public DocumentNGramDistroGraph(int iMinSize, int iMaxSize, int iCorrelationWindow)
Method Detail |
---|
protected void InitGraphs()
InitGraphs
in class DocumentNGramGraph
public void setDataString(java.lang.String sDataString)
setDataString
in class DocumentNGramGraph
public void createEdgesConnecting(UniqueVertexGraph gGraph, java.lang.String sStartNode, java.util.List lOtherNodes, java.util.HashMap hAppearenceHistogram)
createEdgesConnecting
in class DocumentNGramGraph
gGraph
- The graph to usesStartNode
- The node from which all edges beginlOtherNodes
- The list of nodes to which sBaseNode is connectedhAppearenceHistogram
- The histogram of appearences of the termsprotected void updateWeights()
public DocumentNGramDistroGraph mergeDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph
- The second graph used for the mergingpublic DocumentNGramDistroGraph intersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph
- The second graph used for the intersection.
DocumentNGramDistroGraph
indicating the maximum common subgraph of the given graph the
second graph.public DocumentNGramDistroGraph inverseIntersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph
- The graph to compare to.
public DocumentNGramDistroGraph[] intersectAndDeltaDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph
- The graph to use for intersection and difference.
public DocumentNGramDistroGraph allNotIn(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph
- The graph to use for intersection and difference.
public java.util.Map getEdgesToDistros()
public java.lang.Object clone()
clone
in class DocumentNGramGraph
public static void main(java.lang.String[] sArgs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |