de.lmu.ifi.dbs.elki.algorithm.outlier
Class SOD.SODModel<O extends NumberVector<O,?>>

java.lang.Object
  extended by 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<?>>


Field Summary
private  O center
           
private  double[] centerValues
           
private  double expectationOfVariance
           
private  double sod
           
private  double[] variances
           
private  BitSet weightVector
           
 
Constructor Summary
SOD.SODModel(Relation<O> database, DBIDs neighborhood, double alpha, O queryObject)
          Initialize SOD Model
 
Method Summary
 int compareTo(SOD.SODModel<?> o)
           
 double getSod()
          Return the SOD of the point.
private  double subspaceOutlierDegree(O queryObject, O center, BitSet weightVector)
           
 void writeToText(TextWriterStream out, String label)
          Write self to the given TextWriterStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SOD.SODModel

public SOD.SODModel(Relation<O> database,
                    DBIDs neighborhood,
                    double alpha,
                    O queryObject)
Initialize SOD Model

Parameters:
database - Database
neighborhood - Neighborhood
alpha - Alpha value
queryObject - Query object
Method Detail

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 writer
label - Label

compareTo

public int compareTo(SOD.SODModel<?> o)
Specified by:
compareTo in interface Comparable<SOD.SODModel<?>>

Release 0.4.0 (2011-09-20_1324)