|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.filter.haog.fi.algorithm.Cluster
public class Cluster
Class representing documents cluster.
| Constructor Summary | |
|---|---|
Cluster(List description)
Constructor for this class. |
|
| Method Summary | |
|---|---|
boolean |
addDocument(TokenizedDocument document)
Adds document to this cluster. |
boolean |
addNeighbour(Cluster cluster)
Adds cluster to claster's neighbours list. |
List |
getDescription()
Getter for description field. |
Set |
getDocuments()
Getter for documents field. |
Integer |
getId()
Getter for id field. |
int |
getIntersectionSize(Cluster cluster)
This method gets number of common documents in this and cluster given as parameter. |
List |
getNeighbours()
Getter for neighbours field. |
void |
setId(Integer id)
Setter for id field. |
void |
setNeighbours(List neighbours)
Setter for neighbours field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cluster(List description)
description - - list of strings describing this cluster.| Method Detail |
|---|
public boolean addDocument(TokenizedDocument document)
document -
public List getDescription()
description field.
public Set getDocuments()
documents field.
public int getIntersectionSize(Cluster cluster)
cluster - - Cluster to get documents intersection with.
public List getNeighbours()
neighbours field.
public void setNeighbours(List neighbours)
neighbours field.
neighbours - - List of cluster's neighbourspublic boolean addNeighbour(Cluster cluster)
cluster - - Claster to add
public Integer getId()
id field.
public void setId(Integer id)
id field.
id - - Cluster's identifier
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||