|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.output.metrics.ContaminationMetric
public class ContaminationMetric
Computes cluster contamination. If a cluster groups documents found in the same
Document.PARTITIONS, its contamination is 0. If a cluster groups an equally
distributed mix of all partitions, its contamination is 1.0. For a full definition,
please see section 4.4.1 of this
work.
Contamination is calculated for top-level clusters only, taking into account documents
from the cluster and all subclusters. Finally, contamination will be calculated only if
all input documents have non-blank Document.PARTITIONSs.
| Field Summary | |
|---|---|
List<Cluster> |
clusters
|
static String |
CONTAMINATION
Key for the contamination value of a cluster. |
List<Document> |
documents
|
boolean |
enabled
Calculate contamination metric. |
String |
partitionIdFieldName
Partition id field name. |
double |
weightedAverageContamination
Average contamination of the whole cluster set, weighted by the size of cluster. |
| Constructor Summary | |
|---|---|
ContaminationMetric()
|
|
| Method Summary | |
|---|---|
void |
calculate()
Triggers calculation of the metric. |
boolean |
isEnabled()
Return true if this metric should be calculated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTAMINATION
public double weightedAverageContamination
public boolean enabled
public List<Document> documents
public List<Cluster> clusters
public String partitionIdFieldName
| Constructor Detail |
|---|
public ContaminationMetric()
| Method Detail |
|---|
public void calculate()
IClusteringMetricProcessing Input attributes
will have been bound before a call to this method.
public boolean isEnabled()
IClusteringMetrictrue if this metric should be calculated.
|
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 | ||||||||