V
- the type of NumberVector handled by this Algorithm@Title(value="COP: Correlation Outlier Probability") @Reference(authors="Hans-Peter Kriegel, Peer Kr\u00f6ger, Erich Schubert, Arthur Zimek", title="Outlier Detection in Arbitrarily Oriented Subspaces", booktitle="Proc. IEEE Int. Conf. on Data Mining (ICDM 2012)", url="https://doi.org/10.1109/ICDM.2012.21", bibkey="DBLP:conf/icdm/KriegelKSZ12") public class COP<V extends NumberVector> extends AbstractDistanceBasedAlgorithm<V,OutlierResult> implements OutlierAlgorithm
Reference:
Hans-Peter Kriegel, Peer Kröger, Erich Schubert, Arthur Zimek
Outlier Detection in Arbitrarily Oriented Subspaces
Proc. IEEE Int. Conf. on Data Mining (ICDM 2012)
Modifier and Type | Class and Description |
---|---|
static class |
COP.DistanceDist
Score type.
|
static class |
COP.Parameterizer<V extends NumberVector>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COP_DIM
Result name for the dimensionality.
|
static java.lang.String |
COP_ERRORVEC
Result name for the error vectors.
|
static java.lang.String |
COP_SCORES
Result name for the COP outlier scores.
|
(package private) COP.DistanceDist |
dist
Type of distribution to assume for distances.
|
(package private) double |
expect
Expected amount of outliers.
|
(package private) int |
k
Number of neighbors to be considered.
|
private static Logging |
LOG
The logger for this class.
|
(package private) boolean |
models
Include models in output.
|
private PCARunner |
pca
Holds the PCA runner.
|
private static DoubleArrayAdapter |
SHORTENED_ARRAY
A clone of
DoubleArrayAdapter
that only uses the first 85% of the array! |
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
COP(DistanceFunction<? super V> distanceFunction,
int k,
PCARunner pca,
double expect,
COP.DistanceDist dist,
boolean models)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static void |
computeCentroid(double[] centroid,
Relation<? extends NumberVector> relation,
DBIDs ids)
Recompute the centroid of a set.
|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
OutlierResult |
run(Relation<V> relation)
Process a single relation.
|
getDistanceFunction
run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
public static final java.lang.String COP_SCORES
public static final java.lang.String COP_DIM
public static final java.lang.String COP_ERRORVEC
private static final DoubleArrayAdapter SHORTENED_ARRAY
DoubleArrayAdapter
that only uses the first 85% of the array!int k
private PCARunner pca
double expect
COP.DistanceDist dist
boolean models
public COP(DistanceFunction<? super V> distanceFunction, int k, PCARunner pca, double expect, COP.DistanceDist dist, boolean models)
distanceFunction
- distance functionk
- number of neighborspca
- PCA computation methodexpect
- Expected fraction of outliers (for score normalization)dist
- Distance distribution model (ChiSquared, Gamma)models
- Report modelspublic OutlierResult run(Relation<V> relation)
relation
- Relation to processprivate static void computeCentroid(double[] centroid, Relation<? extends NumberVector> relation, DBIDs ids)
centroid
- Scratch bufferrelation
- Input dataids
- IDs to includepublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
Copyright © 2019 ELKI Development Team. License information.