public class UnsupervisedBinaryClassification extends java.lang.Object implements java.lang.Iterable<UnsupervisedBinaryClassification.BinaryClassification>
Modifier and Type | Class and Description |
---|---|
static class |
UnsupervisedBinaryClassification.BinaryClassification |
Constructor and Description |
---|
UnsupervisedBinaryClassification(float... thresholds)
Create a list of binary classification for updating all by passing one distance at once.
|
Modifier and Type | Method and Description |
---|---|
void |
classify(float pairDist,
float matchConfidence)
Binary-classify the passed distance between a pair of objects that match to the passed degree (from 0 (non-matching) to 1 (perfectly matching)).
|
void |
classify(float pairDist,
int cluster1,
int cluster2)
Binary-classify the passed distance between a pair of objects that are assigned to cluster1 and cluster2 clusters IDs, respectively.
|
void |
classify(float pairDist,
short[] cluster1,
short[] clusters2)
Soft-assingment binary classificaation.
|
java.util.Iterator<UnsupervisedBinaryClassification.BinaryClassification> |
iterator() |
java.lang.String |
toString() |
public UnsupervisedBinaryClassification(float... thresholds)
thresholds
- a list of elements of even length, even (from 0) positions are similarity thresholds and odd positions are dissimilarity thresholdspublic void classify(float pairDist, short[] cluster1, short[] clusters2)
pairDist
- distance between objectscluster1
- cluster ID of the first objectclusters2
- array of cluster IDs of the second objectpublic void classify(float pairDist, int cluster1, int cluster2)
pairDist
- distance between objectscluster1
- cluster ID of the first objectcluster2
- cluster ID of the second objectpublic void classify(float pairDist, float matchConfidence)
pairDist
- distance between objectsmatchConfidence
- confidence of match for the pair of objectspublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<UnsupervisedBinaryClassification.BinaryClassification> iterator()
iterator
in interface java.lang.Iterable<UnsupervisedBinaryClassification.BinaryClassification>