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 <D extends Distance<D>> |
computeROCAUCDistanceResult(int size,
Cluster<?> clus,
DistanceDBIDResult<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,
DistanceDBIDResult<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.
|
static <C extends Comparable<? super C>> |
materializeROC(int size,
SetDBIDs ids,
Iterator<? extends PairInterface<C,? extends DBIDRef>> 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> XYCurve 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 <C extends Comparable<? super C>> XYCurve materializeROC(int size, SetDBIDs ids, Iterator<? extends PairInterface<C,? extends DBIDRef>> 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 <D extends Distance<D>> double computeROCAUCDistanceResult(int size, Cluster<?> clus, DistanceDBIDResult<D> nei)
D
- Distance typesize
- Database sizeclus
- Cluster objectnei
- Query resultpublic static <D extends Distance<D>> double computeROCAUCDistanceResult(int size, DBIDs ids, DistanceDBIDResult<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