de.lmu.ifi.dbs.elki.database.relation.Relation.getSimilarityQuery()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中de.lmu.ifi.dbs.elki.database.relation.Relation.getSimilarityQuery方法的一些代码示例,展示了Relation.getSimilarityQuery的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Relation.getSimilarityQuery方法的具体详情如下:
包路径:de.lmu.ifi.dbs.elki.database.relation.Relation
类名称:Relation
方法名:getSimilarityQuery

Relation.getSimilarityQuery介绍

[英]Get the similarity query for a particular similarity function.
[中]获取特定相似性函数的相似性查询。

代码示例

代码示例来源:origin: elki-project/elki

@Override
public <O> SimilarityQuery<O> getSimilarityQuery(Relation<O> objQuery, SimilarityFunction<? super O> similarityFunction, Object... hints) {
 return objQuery.getSimilarityQuery(similarityFunction, hints);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

@Override
public <O> SimilarityQuery<O> getSimilarityQuery(Relation<O> objQuery, SimilarityFunction<? super O> similarityFunction, Object... hints) {
 return objQuery.getSimilarityQuery(similarityFunction, hints);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-database

@Override
public <O> SimilarityQuery<O> getSimilarityQuery(Relation<O> objQuery, SimilarityFunction<? super O> similarityFunction, Object... hints) {
 return objQuery.getSimilarityQuery(similarityFunction, hints);
}

代码示例来源:origin: elki-project/elki

/**
 * Get a range query object for the given similarity query. (Range queries in
 * ELKI refers to radius-based ranges, not rectangular query windows.)
 *
 * When possible, this will use an index, but it may default to an expensive
 * linear scan.
 *
 * Hints include:
 * <ul>
 * <li>Double: Maximum query range</li>
 * <li>{@link DatabaseQuery#HINT_BULK} bulk query needed</li>
 * </ul>
 *
 * @param simFunction Similarity function to use
 * @param hints Optimizer hints (optional)
 * @return KNN Query object
 */
default RangeQuery<O> getSimilarityRangeQuery(SimilarityFunction<? super O> simFunction, Object... hints) {
 SimilarityQuery<O> simQuery = getSimilarityQuery(simFunction, hints);
 return getSimilarityRangeQuery(simQuery, hints);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-api

/**
 * Get a range query object for the given similarity query. (Range queries in
 * ELKI refers to radius-based ranges, not rectangular query windows.)
 *
 * When possible, this will use an index, but it may default to an expensive
 * linear scan.
 *
 * Hints include:
 * <ul>
 * <li>Double: Maximum query range</li>
 * <li>{@link DatabaseQuery#HINT_BULK} bulk query needed</li>
 * </ul>
 *
 * @param simFunction Similarity function to use
 * @param hints Optimizer hints (optional)
 * @return KNN Query object
 */
default RangeQuery<O> getSimilarityRangeQuery(SimilarityFunction<? super O> simFunction, Object... hints) {
 SimilarityQuery<O> simQuery = getSimilarityQuery(simFunction, hints);
 return getSimilarityRangeQuery(simQuery, hints);
}

相关文章