|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<V,MultiResult>
de.lmu.ifi.dbs.elki.algorithm.outlier.SOD<V,D>
V
- the type of RealVector handled by this AlgorithmD
- the type of Distance used by this Algorithmpublic class SOD<V extends RealVector<V,Double>,D extends Distance<D>>
Field Summary | |
---|---|
private double |
alpha
Holds the value of ALPHA_PARAM . |
static OptionID |
ALPHA_ID
OptionID for ALPHA_PARAM |
DoubleParameter |
ALPHA_PARAM
Parameter to indicate the multiplier for the discriminance value for discerning small from large variances. |
private int |
knn
Holds the value of KNN_PARAM . |
static OptionID |
KNN_ID
OptionID for KNN_PARAM |
private IntParameter |
KNN_PARAM
Parameter to specify the number of shared nearest neighbors to be considered for learning the subspace properties., must be an integer greater than 0. |
private SharedNearestNeighborSimilarityFunction<V,D> |
similarityFunction
The similarity function. |
static AssociationID<SODModel<?>> |
SOD_MODEL
The association id to associate a subspace outlier degree. |
private MultiResult |
sodResult
Holds the result. |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
SOD()
Provides the SOD algorithm, adding parameters KNN_PARAM and ALPHA_PARAM
to the option handler additionally to parameters of super class. |
Method Summary | |
---|---|
Description |
getDescription()
Returns a description of the algorithm. |
private KNNList<DoubleDistance> |
getKNN(Database<V> database,
Integer queryObject)
Provides the k nearest neighbors in terms of the shared nearest neighbor distance. |
MultiResult |
getResult()
Returns the result of the algorithm. |
protected MultiResult |
runInTime(Database<V> database)
Performs the SOD algorithm on the given database. |
List<String> |
setParameters(List<String> args)
Calls the super method and sets additionally the values of the parameters KNN_PARAM and ALPHA_PARAM . |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
isTime, isVerbose, run, setTime, setVerbose |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, collectOptions, getParameters, shortDescription |
Field Detail |
---|
public static final AssociationID<SODModel<?>> SOD_MODEL
public static final OptionID KNN_ID
KNN_PARAM
private final IntParameter KNN_PARAM
Default value: 1
Key: -sod.knn
private int knn
KNN_PARAM
.
public static final OptionID ALPHA_ID
ALPHA_PARAM
public final DoubleParameter ALPHA_PARAM
Default value: 1.1
Key: -sod.alpha
private double alpha
ALPHA_PARAM
.
private SharedNearestNeighborSimilarityFunction<V extends RealVector<V,Double>,D extends Distance<D>> similarityFunction
private MultiResult sodResult
Constructor Detail |
---|
public SOD()
KNN_PARAM
and ALPHA_PARAM
to the option handler additionally to parameters of super class.
Method Detail |
---|
protected MultiResult runInTime(Database<V> database) throws IllegalStateException
runInTime
in class AbstractAlgorithm<V extends RealVector<V,Double>,MultiResult>
database
- the database to run the algorithm on
IllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).private KNNList<DoubleDistance> getKNN(Database<V> database, Integer queryObject)
database
- the database holding the objectsqueryObject
- the query object for which the kNNs should be determined
public List<String> setParameters(List<String> args) throws ParameterException
KNN_PARAM
and ALPHA_PARAM
.
The remaining parameters are passed to the similarityFunction
.
setParameters
in interface Parameterizable
setParameters
in class AbstractAlgorithm<V extends RealVector<V,Double>,MultiResult>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingpublic Description getDescription()
Algorithm
public MultiResult getResult()
Algorithm
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |