|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.data.SunburstNode
public class SunburstNode
This class implements the data structure for a node in a Sunburst visualization.
Field Summary | |
---|---|
(package private) boolean |
isDebugMode
|
Constructor Summary | |
---|---|
SunburstNode(DataMatrix to,
Vector<String> allTerms,
Vector<String> coocTerms,
double importance,
double importanceMaxNorm,
double angularStartPosition,
int maxItemsPerNode,
int maxDepth,
double minImportance,
SunburstNode parent)
Creates a new SunburstNode. |
Method Summary | |
---|---|
void |
calculateSunburst()
Determines all nodes of the sunburst and calculates their document frequencies. |
Vector<String> |
getAllTerms()
|
double |
getAngularExtent()
Returns the importance of this node expressed as angular extent of the node. |
double |
getAngularStartPosition()
|
Vector<SunburstNode> |
getChildNodes()
|
Vector<String> |
getCoocTerms()
|
int |
getDepth()
Returns the hierarchy level of the current node. |
long |
getDocumentFrequency()
|
Vector<String> |
getDocuments()
|
double |
getImportance()
|
double |
getImportanceMaxNorm()
|
SunburstNode |
getParentNode()
|
int |
getSunburstDepth()
Determines and returns the depth of the sunburst, i.e. the maximum hierarchy level. |
DataMatrix |
getTermOccurrenceMatrix()
|
Vector<Double> |
getTFxIDF()
|
void |
setDocuments(Vector<String> documents)
|
void |
setTFxIDF(Vector<Double> TFxIDF)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean isDebugMode
Constructor Detail |
---|
public SunburstNode(DataMatrix to, Vector<String> allTerms, Vector<String> coocTerms, double importance, double importanceMaxNorm, double angularStartPosition, int maxItemsPerNode, int maxDepth, double minImportance, SunburstNode parent)
to
- a DataMatrix representing the term occurrencesallTerms
- a VectorcoocTerms
- a Vectorimportance
- sum-normalized importance of current node relative to importance of all other nodes on same hierarchy levelimportanceMaxNorm
- maximum-normalized importance of current node relative to importance of all other nodes on same hierarchy levelmaxItemsPerNode
- maximum number of items per nodemaxDepth
- maximum depth of tree (maximum number of co-occurring terms)minImportance
- minimum importance (child nodes with an importance below that threshold will be excluded from the sunburst)parent
- a SunburstNode pointing to the parent node of this instanceMethod Detail |
---|
public void calculateSunburst()
public double getAngularExtent()
public int getDepth()
public int getSunburstDepth()
public Vector<SunburstNode> getChildNodes()
public Vector<String> getCoocTerms()
public double getImportance()
public double getImportanceMaxNorm()
public double getAngularStartPosition()
public SunburstNode getParentNode()
public long getDocumentFrequency()
public DataMatrix getTermOccurrenceMatrix()
public Vector<String> getAllTerms()
public Vector<String> getDocuments()
public void setDocuments(Vector<String> documents)
documents
- a Vectorpublic Vector<Double> getTFxIDF()
public void setTFxIDF(Vector<Double> TFxIDF)
TFxIDF
- The TFxIDF to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |