V
- the type of DatabaseObjects handled by this Resultpublic static class SOD.SODModel<V extends NumberVector<?>> extends Object implements TextWriteable, Comparable<SOD.SODModel<?>>
Modifier and Type | Field and Description |
---|---|
private V |
center |
private double[] |
centerValues |
private double |
expectationOfVariance |
private double |
sod |
private double[] |
variances |
private BitSet |
weightVector |
Constructor and Description |
---|
SOD.SODModel(Relation<V> relation,
DBIDs neighborhood,
double alpha,
V queryObject)
Initialize SOD Model
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SOD.SODModel<?> o) |
double |
getSod()
Return the SOD of the point.
|
private double |
subspaceOutlierDegree(V queryObject,
V center,
BitSet weightVector)
Compute SOD score.
|
void |
writeToText(TextWriterStream out,
String label)
Write self to the given
TextWriterStream |
private double[] centerValues
private V extends NumberVector<?> center
private double[] variances
private double expectationOfVariance
private BitSet weightVector
private double sod
private double subspaceOutlierDegree(V queryObject, V center, BitSet weightVector)
queryObject
- Query objectcenter
- Center vectorweightVector
- Weight vectorpublic double getSod()
public void writeToText(TextWriterStream out, String label)
TextWriteable
TextWriterStream
writeToText
in interface TextWriteable
out
- Output writerlabel
- Labelpublic int compareTo(SOD.SODModel<?> o)
compareTo
in interface Comparable<SOD.SODModel<?>>