本文整理匯總了Java中com.rapidminer.tools.container.MultidimensionalArraySet類的典型用法代碼示例。如果您正苦於以下問題:Java MultidimensionalArraySet類的具體用法?Java MultidimensionalArraySet怎麽用?Java MultidimensionalArraySet使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
MultidimensionalArraySet類屬於com.rapidminer.tools.container包,在下文中一共展示了MultidimensionalArraySet類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: registerAllCombinationsRecursion
import com.rapidminer.tools.container.MultidimensionalArraySet; //導入依賴的package包/類
/**
* The recursively called method.
*
* @throws UserError
*/
private void registerAllCombinationsRecursion(Attribute[] groupByAttributes,
MultidimensionalArraySet<AggregationFunction[]> functionSet, boolean ignoreMissings,
AggregationAttribute[] aggregationAttributes, int[] indices, int depth) throws UserError {
if (depth == indices.length) {
AggregationFunction[] functions = new AggregationFunction[aggregationAttributes.length];
for (int j = 0; j < aggregationAttributes.length; j++) {
functions[j] = getAggregationFunction(aggregationAttributes[j].functionName, ignoreMissings,
aggregationAttributes[j].attribute);
}
functionSet.set(indices, functions);
} else {
NominalMapping mapping = groupByAttributes[depth].getMapping();
for (String value : mapping.getValues()) {
indices[depth] = mapping.getIndex(value);
registerAllCombinationsRecursion(groupByAttributes, functionSet, ignoreMissings, aggregationAttributes,
indices, depth + 1);
}
}
}
示例2: registerAllCombinationsRecursion
import com.rapidminer.tools.container.MultidimensionalArraySet; //導入依賴的package包/類
/**
* The recursively called method.
*
* @throws UserError
*/
private void registerAllCombinationsRecursion(Attribute[] groupByAttributes, MultidimensionalArraySet<AggregationFunction[]> functionSet, boolean ignoreMissings, AggregationAttribute[] aggregationAttributes, int[] indices, int depth) throws UserError {
if (depth == indices.length) {
AggregationFunction[] functions = new AggregationFunction[aggregationAttributes.length];
for (int j = 0; j < aggregationAttributes.length; j++) {
functions[j] = getAggregationFunction(aggregationAttributes[j].functionName, ignoreMissings, aggregationAttributes[j].attribute);
}
functionSet.set(indices, functions);
} else {
NominalMapping mapping = groupByAttributes[depth].getMapping();
for (String value : mapping.getValues()) {
indices[depth] = mapping.getIndex(value);
registerAllCombinationsRecursion(groupByAttributes, functionSet, ignoreMissings, aggregationAttributes, indices, depth + 1);
}
}
}
示例3: registerAllCombinations
import com.rapidminer.tools.container.MultidimensionalArraySet; //導入依賴的package包/類
/**
* This method will register for each index of the group by attributes' mapping the
* corresponding aggregation functions
*
* @throws UserError
*/
private void registerAllCombinations(Attribute[] groupByAttributes,
MultidimensionalArraySet<AggregationFunction[]> functionSet, boolean ignoreMissings,
AggregationAttribute[] aggregationAttributes) throws UserError {
registerAllCombinationsRecursion(groupByAttributes, functionSet, ignoreMissings, aggregationAttributes,
new int[groupByAttributes.length], 0);
}
示例4: registerAllCombinations
import com.rapidminer.tools.container.MultidimensionalArraySet; //導入依賴的package包/類
/**
* This method will register for each index of the group by attributes' mapping the corresponding aggregation functions
*
* @throws UserError
*/
private void registerAllCombinations(Attribute[] groupByAttributes, MultidimensionalArraySet<AggregationFunction[]> functionSet, boolean ignoreMissings, AggregationAttribute[] aggregationAttributes) throws UserError {
registerAllCombinationsRecursion(groupByAttributes, functionSet, ignoreMissings, aggregationAttributes, new int[groupByAttributes.length], 0);
}