private RangeQuery < V > [ ] initRangeQueries ( Relation < V > relation , int dimensionality ) { @ SuppressWarnings ( "unchecked" ) RangeQuery < V > [ ] rangeQueries = ( RangeQuery < V > [ ] ) new RangeQuery [ dimensionality ] ; for ( int d = 0 ; d < dimensionality ; d ++ ) { rangeQueries [ d ] = relation . getRangeQuery ( new PrimitiveDistanceQuery <> ( relation , new OnedimensionalDistanceFunction ( d ) ) ) ; } return rangeQueries ; }
Initializes the dimension selecting distancefunctions to determine the preference vectors .