當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。