当前位置: 首页>>代码示例>>Java>>正文


Java MultidimensionalArraySet类代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:25,代码来源:AggregationOperator.java

示例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);
        }
    }
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:21,代码来源:AggregationOperator.java

示例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);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:13,代码来源:AggregationOperator.java

示例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);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:9,代码来源:AggregationOperator.java


注:本文中的com.rapidminer.tools.container.MultidimensionalArraySet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。