N
- Neighborhood object type@Title(value="A Trimmed Mean Approach to Finding Spatial Outliers") @Description(value="A local trimmed mean approach to evaluating the spatial outlier factor which is the degree that a site is outlying compared to its neighbors") @Reference(authors="Tianming Hu and Sam Yuan Sung", title="A trimmed mean approach to finding spatial outliers", booktitle="Intelligent Data Analysis, Volume 8, 2004", url="http://iospress.metapress.com/content/PLVLT6431DVNJXNK") public class TrimmedMeanApproach<N> extends AbstractNeighborhoodOutlier<N>
Reference:
Tianming Hu and Sam Yuan Sung
A Trimmed Mean Approach to finding Spatial Outliers
in Intelligent Data Analysis, Volume 8, 2004.
the contiguity Matrix is definit as
wij = 1/k if j is neighbor of i, k is the neighbors size of i.
Modifier and Type | Class and Description |
---|---|
static class |
TrimmedMeanApproach.Parameterizer<N>
Parameterizer.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
private double |
p
the parameter p.
|
NEIGHBORHOOD_ID
Modifier | Constructor and Description |
---|---|
protected |
TrimmedMeanApproach(NeighborSetPredicate.Factory<N> npredf,
double p)
Constructor.
|
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(Database database,
Relation<N> nrel,
Relation<? extends NumberVector<?>> relation)
Run the algorithm.
|
getNeighborSetPredicateFactory
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
private double p
protected TrimmedMeanApproach(NeighborSetPredicate.Factory<N> npredf, double p)
p
- Parameter pnpredf
- Neighborhood factory.public OutlierResult run(Database database, Relation<N> nrel, Relation<? extends NumberVector<?>> relation)
database
- Databasenrel
- Neighborhood relationrelation
- Data Relation (1 dimensional!)protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>