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<V,?>> extends AbstractAlgorithm<OutlierResult> implements OutlierAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
GaussianModel.Parameterizer<V extends NumberVector<V,?>>
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 |
logger
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) |
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging logger
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) throws IllegalStateException
IllegalStateException
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>