|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<R> de.lmu.ifi.dbs.elki.algorithm.AbstractDistanceBasedAlgorithm<O,D,KNNDistanceOrderResult<D>> de.lmu.ifi.dbs.elki.algorithm.KNNDistanceOrder<O,D>
O
- the type of DatabaseObjects handled by this AlgorithmD
- the type of Distance used by this Algorithm@Title(value="KNN-Distance-Order") @Description(value="Assesses the knn distances for a specified k and orders them.") public class KNNDistanceOrder<O,D extends Distance<D>>
Provides an order of the kNN-distances for all objects within the database.
Nested Class Summary | |
---|---|
static class |
KNNDistanceOrder.Parameterizer<O,D extends Distance<D>>
Parameterization class. |
Field Summary | |
---|---|
private int |
k
Holds the value of K_ID . |
static OptionID |
K_ID
Parameter to specify the distance of the k-distant object to be assessed, must be an integer greater than 0. |
private static Logging |
logger
The logger for this class. |
private double |
percentage
Holds the value of PERCENTAGE_ID . |
static OptionID |
PERCENTAGE_ID
Parameter to specify the average percentage of distances randomly chosen to be provided in the result, must be a double greater than 0 and less than or equal to 1. |
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractDistanceBasedAlgorithm |
---|
DISTANCE_FUNCTION_ID |
Constructor Summary | |
---|---|
KNNDistanceOrder(DistanceFunction<O,D> distanceFunction,
int k,
double percentage)
Constructor. |
Method Summary | |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. |
protected Logging |
getLogger()
Get the (STATIC) logger for this class. |
KNNDistanceOrderResult<D> |
run(Database database,
Relation<O> relation)
Provides an order of the kNN-distances for all objects within the specified database. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractDistanceBasedAlgorithm |
---|
getDistanceFunction |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
makeParameterDistanceFunction, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logging logger
public static final OptionID K_ID
private int k
K_ID
.
public static final OptionID PERCENTAGE_ID
private double percentage
PERCENTAGE_ID
.
Constructor Detail |
---|
public KNNDistanceOrder(DistanceFunction<O,D> distanceFunction, int k, double percentage)
distanceFunction
- Distance functionk
- k Parameterpercentage
- percentage parameterMethod Detail |
---|
public KNNDistanceOrderResult<D> run(Database database, Relation<O> relation)
database
- Databaserelation
- Relation
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<KNNDistanceOrderResult<D extends Distance<D>>>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<KNNDistanceOrderResult<D extends Distance<D>>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |