V
- Vector typepublic static class DiSHPreferenceVectorIndex.Factory<V extends NumberVector<?,?>> extends AbstractPreferenceVectorIndex.Factory<V,DiSHPreferenceVectorIndex<V>>
Modifier and Type | Class and Description |
---|---|
static class |
DiSHPreferenceVectorIndex.Factory.Parameterizer<V extends NumberVector<?,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static String |
CONDITION
Description for the determination of the preference vector.
|
static DoubleDistance |
DEFAULT_EPSILON
The default value for epsilon.
|
static DiSHPreferenceVectorIndex.Strategy |
DEFAULT_STRATEGY
Default strategy.
|
protected DoubleDistance[] |
epsilon
The epsilon value for each dimension;
|
static OptionID |
EPSILON_ID
A comma separated list of positive doubles specifying the maximum radius
of the neighborhood to be considered in each dimension for determination
of the preference vector (default is
DEFAULT_EPSILON in each
dimension). |
protected int |
minpts
Threshold for minimum number of points in the neighborhood.
|
static OptionID |
MINPTS_ID
Positive threshold for minimum numbers of points in the
epsilon-neighborhood of a point, must satisfy following
CONDITION . |
static String |
MINPTS_P
Option name for
MINPTS_ID . |
protected DiSHPreferenceVectorIndex.Strategy |
strategy
The strategy to determine the preference vector.
|
static OptionID |
STRATEGY_ID
The strategy for determination of the preference vector, available
strategies are:
DiSHPreferenceVectorIndex.Strategy.APRIORI and
DiSHPreferenceVectorIndex.Strategy.MAX_INTERSECTION . |
Constructor and Description |
---|
DiSHPreferenceVectorIndex.Factory(DoubleDistance[] epsilon,
int minpts,
DiSHPreferenceVectorIndex.Strategy strategy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMinpts()
Return the minpts value
|
DiSHPreferenceVectorIndex<V> |
instantiate(Relation<V> relation)
Instantiate the index for a given database.
|
getInputTypeRestriction
public static final DoubleDistance DEFAULT_EPSILON
public static final OptionID EPSILON_ID
DEFAULT_EPSILON
in each
dimension). If only one value is specified, this value will be used for
each dimension.
Key: -dish.epsilon
Default value: DEFAULT_EPSILON
public static final String MINPTS_P
MINPTS_ID
.private static final String CONDITION
public static final OptionID MINPTS_ID
CONDITION
.
Key: -dish.minpts
public static DiSHPreferenceVectorIndex.Strategy DEFAULT_STRATEGY
public static final OptionID STRATEGY_ID
DiSHPreferenceVectorIndex.Strategy.APRIORI
and
DiSHPreferenceVectorIndex.Strategy.MAX_INTERSECTION
.
Key: -dish.strategy
Default value: DEFAULT_STRATEGY
protected DoubleDistance[] epsilon
protected int minpts
protected DiSHPreferenceVectorIndex.Strategy strategy
public DiSHPreferenceVectorIndex.Factory(DoubleDistance[] epsilon, int minpts, DiSHPreferenceVectorIndex.Strategy strategy)
epsilon
- Epsilonminpts
- Minptsstrategy
- Strategypublic DiSHPreferenceVectorIndex<V> instantiate(Relation<V> relation)
PreferenceVectorIndex.Factory
instantiate
in interface IndexFactory<V extends NumberVector<?,?>,DiSHPreferenceVectorIndex<V extends NumberVector<?,?>>>
instantiate
in interface PreferenceVectorIndex.Factory<V extends NumberVector<?,?>,DiSHPreferenceVectorIndex<V extends NumberVector<?,?>>>
instantiate
in class AbstractPreferenceVectorIndex.Factory<V extends NumberVector<?,?>,DiSHPreferenceVectorIndex<V extends NumberVector<?,?>>>
relation
- Relation to usepublic int getMinpts()