de.lmu.ifi.dbs.elki.algorithm.outlier
Class SOD.SODModel<O extends NumberVector<O,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.algorithm.outlier.SOD.SODModel<O>
- Type Parameters:
O
- the type of DatabaseObjects handled by this Result
- All Implemented Interfaces:
- TextWriteable, Comparable<SOD.SODModel<?>>
- Enclosing class:
- SOD<V extends NumberVector<V,?>>
public static class SOD.SODModel<O extends NumberVector<O,?>>
- extends Object
- implements TextWriteable, Comparable<SOD.SODModel<?>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
centerValues
private double[] centerValues
center
private O extends NumberVector<O,?> center
variances
private double[] variances
expectationOfVariance
private double expectationOfVariance
weightVector
private BitSet weightVector
sod
private double sod
SOD.SODModel
public SOD.SODModel(Relation<O> database,
DBIDs neighborhood,
double alpha,
O queryObject)
- Initialize SOD Model
- Parameters:
database
- Databaseneighborhood
- Neighborhoodalpha
- Alpha valuequeryObject
- Query object
subspaceOutlierDegree
private double subspaceOutlierDegree(O queryObject,
O center,
BitSet weightVector)
- Parameters:
queryObject
- center
- weightVector
-
- Returns:
- sod value
getSod
public double getSod()
- Return the SOD of the point.
- Returns:
- sod value
writeToText
public void writeToText(TextWriterStream out,
String label)
- Description copied from interface:
TextWriteable
- Write self to the given
TextWriterStream
- Specified by:
writeToText
in interface TextWriteable
- Parameters:
out
- Output writerlabel
- Label
compareTo
public int compareTo(SOD.SODModel<?> o)
- Specified by:
compareTo
in interface Comparable<SOD.SODModel<?>>