public class ROC extends Object
Modifier and Type | Class and Description |
---|---|
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.OutlierScoreAdapter
This adapter can be used for an arbitrary collection of Integers, and uses
that id1.compareTo(id2) !
|
static class |
ROC.SimpleAdapter
This adapter can be used for an arbitrary collection of Integers, and uses
that id1.compareTo(id2) !
|
Constructor and Description |
---|
ROC() |
Modifier and Type | Method and Description |
---|---|
static double |
computeAUC(Iterable<DoubleDoublePair> curve)
compute the Area Under Curve (difference to y axis) for an arbitrary
polygon
|
static <D extends Distance<D>> |
computeROCAUCDistanceResult(int size,
Cluster<?> clus,
List<DistanceResultPair<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,
List<DistanceResultPair<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 <C extends Comparable<? super C>,T> |
materializeROC(int size,
Set<? super T> ids,
Iterator<? extends PairInterface<C,T>> nei)
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 <C extends Comparable<? super C>,T> List<DoubleDoublePair> materializeROC(int size, Set<? super T> ids, Iterator<? extends PairInterface<C,T>> nei)
C
- Reference typesize
- Database sizeids
- Collection of positive IDs, should support efficient contains()nei
- List of neighbors along with some comparable object to detect
'same positions'.public static double computeAUC(Iterable<DoubleDoublePair> curve)
curve
- Iterable list of points (x,y)public static <D extends Distance<D>> double computeROCAUCDistanceResult(int size, Cluster<?> clus, List<DistanceResultPair<D>> nei)
D
- Distance typesize
- Database sizeclus
- Cluster objectnei
- Query resultpublic static <D extends Distance<D>> double computeROCAUCDistanceResult(int size, DBIDs ids, List<DistanceResultPair<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