|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.page.BasicCartesianPage
public class BasicCartesianPage
Class representing a bag-of-words representation of a page.
| Constructor Summary | |
|---|---|
BasicCartesianPage(java.lang.String ID)
Creates a new instance of BasicCartesianPage |
|
| Method Summary | |
|---|---|
double |
compare(BasicCartesianPage p)
Implements an internal compare. |
double |
compare(Page p)
Only does comparisons of other objects of identical class. |
int |
compareTo(java.lang.Object o)
FIXME: Not implemented yet |
java.util.HashMap<java.lang.String,java.lang.Double> |
getHistogram()
Retrieve the histogram describing this document. |
java.lang.String |
getID()
get the unique id identifying this page |
void |
load(java.util.HashMap<java.lang.String,java.lang.Double> histogram)
Create a page given the bag-of-words description. |
void |
load(java.lang.String content)
Create a page document fromthe given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicCartesianPage(java.lang.String ID)
ID - | Method Detail |
|---|
public java.lang.String getID()
Page
getID in interface Pagepublic java.util.HashMap<java.lang.String,java.lang.Double> getHistogram()
Page
getHistogram in interface Pagepublic double compare(Page p)
compare in interface Pagep - page to compare to
public double compare(BasicCartesianPage p)
p -
public void load(java.lang.String content)
Page
load in interface Pagecontent - contents of the text documentpublic void load(java.util.HashMap<java.lang.String,java.lang.Double> histogram)
Page
load in interface Pagehistogram - bag-of-words description of a text documentpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||