Package elki.outlier.density
Class HySortOD.DensityStrategy
- java.lang.Object
-
- elki.outlier.density.HySortOD.DensityStrategy
-
- Direct Known Subclasses:
HySortOD.NaiveStrategy,HySortOD.TreeStrategy
- Enclosing class:
- HySortOD
private abstract static class HySortOD.DensityStrategy extends java.lang.ObjectStrategy for compute density.- Author:
- Cabral, EugĂȘnio F.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<HySortOD.Hypercube>HLocal reference for search(package private) intWmaxMax hypercube neighborhood density
-
Constructor Summary
Constructors Modifier Constructor Description privateDensityStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract HySortOD.DensityStrategybuildIndex(java.util.List<HySortOD.Hypercube> H)Construct the index for compute hypercube density according to a strategy.(package private) abstract int[]getDensities()(package private) doublegetMaxDensity()protected booleanisImmediate(HySortOD.Hypercube hi, HySortOD.Hypercube hk)Validate if Hypercube hk is immediate neighbor of Hypercube hi.protected booleanisProspective(HySortOD.Hypercube hi, HySortOD.Hypercube hk, int col)Validate if Hypercube hk is immediate neighbor of Hypercube hi using a the same coordinate.
-
-
-
Field Detail
-
Wmax
int Wmax
Max hypercube neighborhood density
-
H
java.util.List<HySortOD.Hypercube> H
Local reference for search
-
-
Method Detail
-
buildIndex
abstract HySortOD.DensityStrategy buildIndex(java.util.List<HySortOD.Hypercube> H)
Construct the index for compute hypercube density according to a strategy.- Parameters:
H- List of hypercubes- Returns:
- DensityStrategy Strategy instance
-
getDensities
abstract int[] getDensities()
- Returns:
- Densities of all hypercubes
-
getMaxDensity
double getMaxDensity()
- Returns:
- Maximum density
-
isImmediate
protected boolean isImmediate(HySortOD.Hypercube hi, HySortOD.Hypercube hk)
Validate if Hypercube hk is immediate neighbor of Hypercube hi.- Parameters:
hi- Hypercube hihk- Hypercube hk- Returns:
-
isProspective
protected boolean isProspective(HySortOD.Hypercube hi, HySortOD.Hypercube hk, int col)
Validate if Hypercube hk is immediate neighbor of Hypercube hi using a the same coordinate.- Parameters:
hi- Hypercube hihk- Hypercube hkcol- Hypercube coordinate- Returns:
-
-