use of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization in project elki by elki-project.
the class RStarTreeTest method testAdaptiveSortTileRecursiveBulkSplit.
/**
* Test {@link RStarTree} bulk loaded using
* {@link AdaptiveSortTileRecursiveBulkSplit}
*/
@Test
public void testAdaptiveSortTileRecursiveBulkSplit() {
ListParameterization spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.BULK_SPLIT_ID, AdaptiveSortTileRecursiveBulkSplit.class);
testExactEuclidean(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
//
spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.BULK_SPLIT_ID, AdaptiveSortTileRecursiveBulkSplit.class);
testExactCosine(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
}
use of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization in project elki by elki-project.
the class RStarTreeTest method testRTreeGreeneSplit.
/**
* Test {@link RStarTree} using {@link GreeneSplit}
*/
@Test
public void testRTreeGreeneSplit() {
ListParameterization spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.SPLIT_STRATEGY_ID, GreeneSplit.class);
testExactEuclidean(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
//
spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.SPLIT_STRATEGY_ID, GreeneSplit.class);
testExactCosine(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
}
use of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization in project elki by elki-project.
the class RStarTreeTest method testRTreeAngTanLinearSplit.
/**
* Test {@link RStarTree} using {@link RTreeLinearSplit}
*/
@Test
public void testRTreeAngTanLinearSplit() {
ListParameterization spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.SPLIT_STRATEGY_ID, AngTanLinearSplit.class);
testExactEuclidean(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
//
spatparams = new ListParameterization();
spatparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, RStarTreeFactory.class);
spatparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
spatparams.addParameter(RStarTreeFactory.Parameterizer.SPLIT_STRATEGY_ID, AngTanLinearSplit.class);
testExactCosine(spatparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
}
use of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization in project elki by elki-project.
the class AbstractSimpleAlgorithmTest method makeSimpleDatabase.
/**
* Generate a simple DoubleVector database from a file.
*
* @param filename File to load
* @param expectedSize Expected size in records
* @return Database
*/
public static Database makeSimpleDatabase(String filename, int expectedSize) {
ListParameterization params = new ListParameterization();
// Use a fixed DBID - historically, we used 1 indexed - to reduce random
// variation in results due to different hash codes everywhere.
params.addParameter(AbstractDatabaseConnection.Parameterizer.FILTERS_ID, new FixedDBIDsFilter(1));
return makeSimpleDatabase(filename, expectedSize, params);
}
use of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization in project elki by elki-project.
the class XTreeTest method testXTree.
/**
* Test {@link XTree} using a file based database connection.
*/
@Test
public void testXTree() {
ListParameterization xtreeparams = new ListParameterization();
xtreeparams.addParameter(StaticArrayDatabase.Parameterizer.INDEX_ID, XTreeFactory.class);
xtreeparams.addParameter(AbstractPageFileFactory.Parameterizer.PAGE_SIZE_ID, 300);
testExactEuclidean(xtreeparams, RStarTreeKNNQuery.class, RStarTreeRangeQuery.class);
}
Aggregations