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.Object
Strategy for compute density.- Author:
- Cabral, EugĂȘnio F.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<HySortOD.Hypercube>
H
Local reference for search(package private) int
Wmax
Max hypercube neighborhood density
-
Constructor Summary
Constructors Modifier Constructor Description private
DensityStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract HySortOD.DensityStrategy
buildIndex(java.util.List<HySortOD.Hypercube> H)
Construct the index for compute hypercube density according to a strategy.(package private) abstract int[]
getDensities()
(package private) double
getMaxDensity()
protected boolean
isImmediate(HySortOD.Hypercube hi, HySortOD.Hypercube hk)
Validate if Hypercube hk is immediate neighbor of Hypercube hi.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.
-
-
-
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:
-
-