本文整理了Java中de.lmu.ifi.dbs.elki.database.relation.Relation.getRKNNQuery
方法的一些代码示例,展示了Relation.getRKNNQuery
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Relation.getRKNNQuery
方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.database.relation.Relation
类名称:Relation
方法名:getRKNNQuery
[英]Get a rKNN query object for the given distance query. When possible, this will use an index, but it may default to an expensive linear scan. Hints include:
代码示例来源:origin: elki-project/elki
@Override
public <O> RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, Object... hints) {
@SuppressWarnings("unchecked")
final Relation<O> relation = (Relation<O>) distanceQuery.getRelation();
return relation.getRKNNQuery(distanceQuery, hints);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-database
@Override
public <O> RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, Object... hints) {
@SuppressWarnings("unchecked")
final Relation<O> relation = (Relation<O>) distanceQuery.getRelation();
return relation.getRKNNQuery(distanceQuery, hints);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
@Override
public <O> RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, Object... hints) {
@SuppressWarnings("unchecked")
final Relation<O> relation = (Relation<O>) distanceQuery.getRelation();
return relation.getRKNNQuery(distanceQuery, hints);
}
代码示例来源:origin: elki-project/elki
/**
* Get a rKNN query object for the given distance query.
*
* When possible, this will use an index, but it may default to an expensive
* linear scan.
*
* Hints include:
* <ul>
* <li>Integer: maximum value for k needed</li>
* <li>{@link DatabaseQuery#HINT_BULK} bulk query needed</li>
* </ul>
*
* @param distanceFunction Distance function to use
* @param hints Optimizer hints (optional)
* @return KNN Query object
*/
default RKNNQuery<O> getRKNNQuery(DistanceFunction<? super O> distanceFunction, Object... hints) {
DistanceQuery<O> distanceQuery = getDistanceQuery(distanceFunction, hints);
return getRKNNQuery(distanceQuery, hints);
}
}
代码示例来源:origin: elki-project/elki
/**
* Get a rKNN query object for the given distance function.
*
* When possible, this will use an index, but it may default to an expensive
* linear scan.
*
* Hints include:
* <ul>
* <li>Integer: maximum value for k needed</li>
* <li>{@link de.lmu.ifi.dbs.elki.database.query.DatabaseQuery#HINT_BULK} bulk
* query needed</li>
* </ul>
*
* @param relation Relation used
* @param distanceFunction Distance function
* @param hints Optimizer hints
*
* @param <O> Object type
* @return RKNN Query object
*/
public static <O> RKNNQuery<O> getRKNNQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints) {
final DistanceQuery<O> distanceQuery = relation.getDistanceQuery(distanceFunction, hints);
return relation.getRKNNQuery(distanceQuery, hints);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-api
/**
* Get a rKNN query object for the given distance query.
*
* When possible, this will use an index, but it may default to an expensive
* linear scan.
*
* Hints include:
* <ul>
* <li>Integer: maximum value for k needed</li>
* <li>{@link DatabaseQuery#HINT_BULK} bulk query needed</li>
* </ul>
*
* @param distanceFunction Distance function to use
* @param hints Optimizer hints (optional)
* @return KNN Query object
*/
default RKNNQuery<O> getRKNNQuery(DistanceFunction<? super O> distanceFunction, Object... hints) {
DistanceQuery<O> distanceQuery = getDistanceQuery(distanceFunction, hints);
return getRKNNQuery(distanceQuery, hints);
}
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-database
/**
* Get a rKNN query object for the given distance function.
*
* When possible, this will use an index, but it may default to an expensive
* linear scan.
*
* Hints include:
* <ul>
* <li>Integer: maximum value for k needed</li>
* <li>{@link de.lmu.ifi.dbs.elki.database.query.DatabaseQuery#HINT_BULK} bulk
* query needed</li>
* </ul>
*
* @param relation Relation used
* @param distanceFunction Distance function
* @param hints Optimizer hints
*
* @param <O> Object type
* @return RKNN Query object
*/
public static <O> RKNNQuery<O> getRKNNQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints) {
final DistanceQuery<O> distanceQuery = relation.getDistanceQuery(distanceFunction, hints);
return relation.getRKNNQuery(distanceQuery, hints);
}
代码示例来源:origin: de.lmu.ifi.dbs.elki/elki
/**
* Get a rKNN query object for the given distance function.
*
* When possible, this will use an index, but it may default to an expensive
* linear scan.
*
* Hints include:
* <ul>
* <li>Integer: maximum value for k needed</li>
* <li>{@link de.lmu.ifi.dbs.elki.database.query.DatabaseQuery#HINT_BULK} bulk
* query needed</li>
* </ul>
*
* @param relation Relation used
* @param distanceFunction Distance function
* @param hints Optimizer hints
*
* @param <O> Object type
* @return RKNN Query object
*/
public static <O> RKNNQuery<O> getRKNNQuery(Relation<O> relation, DistanceFunction<? super O> distanceFunction, Object... hints) {
final DistanceQuery<O> distanceQuery = relation.getDistanceQuery(distanceFunction, hints);
return relation.getRKNNQuery(distanceQuery, hints);
}
内容来源于网络,如有侵权,请联系作者删除!