|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.index.preprocessed.snn.SharedNearestNeighborPreprocessor.Factory<O,D>
public static class SharedNearestNeighborPreprocessor.Factory<O,D extends Distance<D>>

Factory class
| Nested Class Summary | |
|---|---|
static class |
SharedNearestNeighborPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>
Parameterization class. |
| Field Summary | |
|---|---|
static OptionID |
DISTANCE_FUNCTION_ID
Parameter to indicate the distance function to be used to ascertain the nearest neighbors. |
protected DistanceFunction<O,D> |
distanceFunction
Hold the distance function to be used. |
static OptionID |
NUMBER_OF_NEIGHBORS_ID
Parameter to indicate the number of neighbors to be taken into account for the shared-nearest-neighbor similarity. |
protected int |
numberOfNeighbors
Holds the number of nearest neighbors to be used. |
| Constructor Summary | |
|---|---|
SharedNearestNeighborPreprocessor.Factory(int numberOfNeighbors,
DistanceFunction<O,D> distanceFunction)
Constructor. |
|
| Method Summary | |
|---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. |
int |
getNumberOfNeighbors()
Get the number of neighbors |
SharedNearestNeighborPreprocessor<O,D> |
instantiate(Relation<O> relation)
Instantiate the index for a given database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OptionID NUMBER_OF_NEIGHBORS_ID
Default value: 1
Key: sharedNearestNeighbors
public static final OptionID DISTANCE_FUNCTION_ID
Default value: EuclideanDistanceFunction
Key: SNNDistanceFunction
protected int numberOfNeighbors
protected DistanceFunction<O,D extends Distance<D>> distanceFunction
| Constructor Detail |
|---|
public SharedNearestNeighborPreprocessor.Factory(int numberOfNeighbors,
DistanceFunction<O,D> distanceFunction)
numberOfNeighbors - Number of neighborsdistanceFunction - Distance function| Method Detail |
|---|
public SharedNearestNeighborPreprocessor<O,D> instantiate(Relation<O> relation)
SharedNearestNeighborIndex.Factory
instantiate in interface IndexFactory<O,SharedNearestNeighborPreprocessor<O,D extends Distance<D>>>instantiate in interface SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborPreprocessor<O,D extends Distance<D>>>relation - Database type
public int getNumberOfNeighbors()
getNumberOfNeighbors in interface SharedNearestNeighborIndex.Factory<O,SharedNearestNeighborPreprocessor<O,D extends Distance<D>>>public TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction in interface IndexFactory<O,SharedNearestNeighborPreprocessor<O,D extends Distance<D>>>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||