public class ROC extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ROC.DBIDsTest
Test predicate using a DBID set as positive elements.
|
static class |
ROC.DecreasingVectorIter
Class to iterate over a number vector in decreasing order.
|
static class |
ROC.DistanceResultAdapter<D extends Distance<D>>
This adapter can be used for an arbitrary collection of Integers, and uses
that id1.compareTo(id2) !
|
static class |
ROC.IncreasingVectorIter
Class to iterate over a number vector in decreasing order.
|
static class |
ROC.OutlierScoreAdapter
This adapter can be used for an arbitrary collection of Integers, and uses
that id1.compareTo(id2) !
|
static interface |
ROC.Predicate<T>
Predicate to test whether an object is a true positive or false positive.
|
static interface |
ROC.ScoreIter
Iterator for comparing scores.
|
static class |
ROC.SimpleAdapter
This adapter can be used for an arbitrary collection of Integers, and uses
that id1.compareTo(id2) !
|
static class |
ROC.VectorNonZero
Class that uses a NumberVector as reference, and considers all non-zero
values as positive entries.
|
static class |
ROC.VectorOverThreshold
Class that uses a NumberVector as reference, and considers all non-zero
values as positive entries.
|
static class |
ROC.VectorZero
Class that uses a NumberVector as reference, and considers all zero values
as positive entries.
|
Constructor and Description |
---|
ROC() |
Modifier and Type | Method and Description |
---|---|
static <D extends Distance<D>> |
computeROCAUCDistanceResult(int size,
Cluster<?> clus,
DistanceDBIDList<D> nei)
Compute a ROC curves Area-under-curve for a QueryResult and a Cluster.
|
static <D extends Distance<D>> |
computeROCAUCDistanceResult(int size,
DBIDs ids,
DistanceDBIDList<D> nei)
Compute a ROC curves Area-under-curve for a QueryResult and a Cluster.
|
static double |
computeROCAUCSimple(int size,
DBIDs ids,
DBIDs nei)
Compute a ROC curves Area-under-curve for a QueryResult and a Cluster.
|
static <I extends ROC.ScoreIter> |
materializeROC(ROC.Predicate<? super I> predicate,
I iter)
Compute a ROC curve given a set of positive IDs and a sorted list of
(comparable, ID)s, where the comparable object is used to decided when two
objects are interchangeable.
|
public static <I extends ROC.ScoreIter> XYCurve materializeROC(ROC.Predicate<? super I> predicate, I iter)
I
- Iterator typepredicate
- Predicate to test for positive objectsiter
- Iterator over results, with ties.public static <D extends Distance<D>> double computeROCAUCDistanceResult(int size, Cluster<?> clus, DistanceDBIDList<D> nei)
D
- Distance typesize
- Database sizeclus
- Cluster objectnei
- Query resultpublic static <D extends Distance<D>> double computeROCAUCDistanceResult(int size, DBIDs ids, DistanceDBIDList<D> nei)
D
- Distance typesize
- Database sizeids
- Collection of positive IDs, should support efficient contains()nei
- Query Resultpublic static double computeROCAUCSimple(int size, DBIDs ids, DBIDs nei)
size
- Database sizeids
- Collection of positive IDs, should support efficient contains()nei
- Query Result