Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.algorithm.outlier
Class SODModel<O extends RealVector<O,Double>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.outlier.SODModel<O>
Type Parameters:
O - the type of DatabaseObjects handled by this Result
All Implemented Interfaces:
TextWriteable, Comparable<SODModel<?>>

public class SODModel<O extends RealVector<O,Double>>
extends Object
implements TextWriteable, Comparable<SODModel<?>>

Author:
Arthur Zimek

Field Summary
private  O center
           
private  double[] centerValues
           
private  DimensionsSelectingEuclideanDistanceFunction<O> DISTANCE_FUNCTION
           
private  double expectationOfVariance
           
private  double sod
           
private  double[] variances
           
private  BitSet weightVector
           
 
Constructor Summary
SODModel(Database<O> database, List<Integer> neighborhood, double alpha, O queryObject)
           
 
Method Summary
 int compareTo(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

DISTANCE_FUNCTION

private final DimensionsSelectingEuclideanDistanceFunction<O extends RealVector<O,Double>> DISTANCE_FUNCTION

centerValues

private double[] centerValues

center

private O extends RealVector<O,Double> center

variances

private double[] variances

expectationOfVariance

private double expectationOfVariance

weightVector

private BitSet weightVector

sod

private double sod
Constructor Detail

SODModel

public SODModel(Database<O> database,
                List<Integer> neighborhood,
                double alpha,
                O queryObject)
Parameters:
database -
neighborhood -
alpha -
queryObject -
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(SODModel<?> o)
Specified by:
compareTo in interface Comparable<SODModel<?>>

Release 0.2 (2009-07-06_1820)