
V - Vector type@Title(value="Gaussian Model Outlier Detection") @Description(value="Fit a multivariate gaussian model onto the data, and use the PDF to compute an outlier score.") public class GaussianModel<V extends NumberVector<?>> extends AbstractAlgorithm<OutlierResult> implements OutlierAlgorithm
| Modifier and Type | Class and Description |
|---|---|
static class |
GaussianModel.Parameterizer<V extends NumberVector<?>>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
invert
Invert the result
|
static OptionID |
INVERT_ID
OptionID for inversion flag.
|
private static Logging |
LOG
The logger for this class.
|
private static double |
SINGULARITY_CHEAT
Small value to increment diagonally of a matrix in order to avoid
singularity before building the inverse.
|
| Constructor and Description |
|---|
GaussianModel(boolean invert)
Constructor with actual parameters.
|
| Modifier and Type | Method and Description |
|---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
OutlierResult |
run(Relation<V> relation)
Run the algorithm
|
makeParameterDistanceFunction, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprivate static final Logging LOG
public static final OptionID INVERT_ID
private static final double SINGULARITY_CHEAT
private boolean invert
public GaussianModel(boolean invert)
invert - inversion flag.public OutlierResult run(Relation<V> relation)
relation - Data relationpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<OutlierResult>protected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<OutlierResult>