public class LOF
extends weka.filters.Filter
implements weka.core.OptionHandler, weka.core.WeightedInstancesHandler, weka.core.TechnicalInformationHandler, weka.core.EnvironmentHandler
BibTeX:
@article{Breunig2000, author = {Markus M. Breunig and Hans-Peter Kriegel and Raymond T. Ng and Jorg Sander}, journal = {ACM SIGMOD Record}, number = {2}, pages = {93-104}, publisher = {ACM New York}, title = {LOF: Identifying Density-Based Local Outliers}, volume = {29}, year = {2000} }
Valid options are:
-min <num> Lower bound on the k nearest neighbors for finding max LOF (minPtsLB) (default = 10)
-max <num> Upper bound on the k nearest neighbors for finding max LOF (minPtsUB) (default = 40)
-A The nearest neighbour search algorithm to use (default: weka.core.neighboursearch.LinearNNSearch).
-num-slots <num> Number of execution slots. (default 1 - i.e. no parallelism)
Constructor and Description |
---|
LOF() |
Modifier and Type | Method and Description |
---|---|
boolean |
batchFinished()
Signifies that this batch of input to the filter is finished.
|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
java.lang.String |
getMinPointsLowerBound()
Get the lower bound (minPtsLB) to use on the range for k when determining
the maximum LOF value
|
java.lang.String |
getMinPointsUpperBound()
Get the upper bound (minPtsUB) to use on the range for k when determining
the maximum LOF value
|
weka.core.neighboursearch.NearestNeighbourSearch |
getNNSearch()
Get the nearest neighbor search method to use
|
java.lang.String |
getNumExecutionSlots()
Get the degree of parallelism to use.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
weka.core.TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
boolean |
input(weka.core.Instance instance)
Input an instance for filtering.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for testing this class
|
java.lang.String |
minPointsLowerBoundTipText()
Returns the tip text for this property
|
java.lang.String |
minPointsUpperBoundTipText()
Returns the tip text for this property
|
java.lang.String |
NNSearchTipText()
Returns the tip text for this property
|
java.lang.String |
numExecutionSlotsTipText()
Returns the tip text for this property
|
void |
setClassifierMode(boolean cm)
Set whether to work in classifier mode or not.
|
void |
setEnvironment(weka.core.Environment env)
Set environment variables to use
|
boolean |
setInputFormat(weka.core.Instances instanceInfo)
Sets the format of the input instances.
|
void |
setMinPointsLowerBound(java.lang.String pts)
Set the lower bound (minPtsLB) to use on the range for k when determining
the maximum LOF value
|
void |
setMinPointsUpperBound(java.lang.String pts)
Set the upper bound (minPtsUB) to use on the range for k when determining
the maximum LOF value
|
void |
setNNSearch(weka.core.neighboursearch.NearestNeighbourSearch s)
Set the nearest neighbor search method to use
|
void |
setNumExecutionSlots(java.lang.String slots)
Set the degree of parallelism to use.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
public java.lang.String globalInfo()
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.filters.Filter
Capabilities
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.filters.Filter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
Parses a given list of options.
Valid options are:-min <num> Lower bound on the k nearest neighbors for finding max LOF (minPtsLB) (default = 10)
-max <num> Upper bound on the k nearest neighbors for finding max LOF (minPtsUB) (default = 40)
-A The nearest neighbour search algorithm to use (default: weka.core.neighboursearch.LinearNNSearch).
-num-slots <num> Number of execution slots. (default 1 - i.e. no parallelism)
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.filters.Filter
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.filters.Filter
public void setClassifierMode(boolean cm)
cm
- true if working as a classifierpublic java.lang.String minPointsLowerBoundTipText()
public void setMinPointsLowerBound(java.lang.String pts)
pts
- the lower boundpublic java.lang.String getMinPointsLowerBound()
public java.lang.String minPointsUpperBoundTipText()
public void setMinPointsUpperBound(java.lang.String pts)
pts
- the upper boundpublic java.lang.String getMinPointsUpperBound()
public java.lang.String NNSearchTipText()
public void setNNSearch(weka.core.neighboursearch.NearestNeighbourSearch s)
s
- the nearest neighbor search method to usepublic weka.core.neighboursearch.NearestNeighbourSearch getNNSearch()
public java.lang.String numExecutionSlotsTipText()
public void setNumExecutionSlots(java.lang.String slots)
slots
- the number of tasks to run in parallel when computing the
nearest neighbors and evaluating different values of k between the
lower and upper boundspublic java.lang.String getNumExecutionSlots()
public boolean setInputFormat(weka.core.Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class weka.filters.Filter
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored -
only the structure is required).java.lang.Exception
- if the input format can't be set successfullypublic boolean input(weka.core.Instance instance)
input
in class weka.filters.Filter
instance
- the input instancejava.lang.IllegalStateException
- if no input format has been defined.public boolean batchFinished()
batchFinished
in class weka.filters.Filter
java.lang.IllegalStateException
- if no input structure has been definedpublic void setEnvironment(weka.core.Environment env)
setEnvironment
in interface weka.core.EnvironmentHandler
env
- the evnironment variables to usepublic java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.filters.Filter
public static void main(java.lang.String[] args)
args
- command line arguments