本文整理汇总了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);
}