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


Java BasicArithmeticOperationGenerator类代码示例

本文整理汇总了Java中com.rapidminer.generator.BasicArithmeticOperationGenerator的典型用法代码示例。如果您正苦于以下问题:Java BasicArithmeticOperationGenerator类的具体用法?Java BasicArithmeticOperationGenerator怎么用?Java BasicArithmeticOperationGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BasicArithmeticOperationGenerator类属于com.rapidminer.generator包,在下文中一共展示了BasicArithmeticOperationGenerator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getGenerators

import com.rapidminer.generator.BasicArithmeticOperationGenerator; //导入依赖的package包/类
/** Returns a list with all generator which should be used. */
public List<FeatureGenerator> getGenerators() {
	List<FeatureGenerator> generators = new ArrayList<FeatureGenerator>();
	if (getParameterAsBoolean(PARAMETER_USE_PLUS)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.SUM));
	}
	if (getParameterAsBoolean(PARAMETER_USE_DIFF)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.DIFFERENCE));
	}
	if (getParameterAsBoolean(PARAMETER_USE_MULT)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.PRODUCT));
	}
	if (getParameterAsBoolean(PARAMETER_USE_DIV)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.QUOTIENT));
	}
	if (getParameterAsBoolean(PARAMETER_RECIPROCAL_VALUE)) {
		generators.add(new ReciprocalValueGenerator());
	}
	return generators;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:21,代码来源:AbstractGeneratingGeneticAlgorithm.java

示例2: getGenerators

import com.rapidminer.generator.BasicArithmeticOperationGenerator; //导入依赖的package包/类
/** Returns a list with all generator which should be used. */
public List<FeatureGenerator> getGenerators() {
	List<FeatureGenerator> generators = new ArrayList<FeatureGenerator>();
	if (getParameterAsBoolean(PARAMETER_USE_PLUS))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.SUM));
	if (getParameterAsBoolean(PARAMETER_USE_DIFF))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.DIFFERENCE));
	if (getParameterAsBoolean(PARAMETER_USE_MULT))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.PRODUCT));
	if (getParameterAsBoolean(PARAMETER_USE_DIV))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.QUOTIENT));
	if (getParameterAsBoolean(PARAMETER_RECIPROCAL_VALUE))
		generators.add(new ReciprocalValueGenerator());
	return generators;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:16,代码来源:AbstractGeneratingGeneticAlgorithm.java

示例3: getGenerators

import com.rapidminer.generator.BasicArithmeticOperationGenerator; //导入依赖的package包/类
private List<FeatureGenerator> getGenerators() {
	List<FeatureGenerator> generators = new ArrayList<>();
	if (getParameterAsBoolean(PARAMETER_USE_PLUS)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.SUM));
	}
	if (getParameterAsBoolean(PARAMETER_USE_DIFF)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.DIFFERENCE));
	}
	if (getParameterAsBoolean(PARAMETER_USE_MULT)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.PRODUCT));
	}
	if (getParameterAsBoolean(PARAMETER_USE_DIV)) {
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.QUOTIENT));
	}
	if (getParameterAsBoolean(PARAMETER_USE_RECIPROCALS)) {
		generators.add(new ReciprocalValueGenerator());
	}
	if (getParameterAsBoolean(PARAMETER_USE_SQUARE_ROOTS)) {
		generators.add(new SquareRootGenerator());
	}
	if (getParameterAsBoolean(PARAMETER_USE_POWER_FUNCTIONS)) {
		generators.add(new PowerGenerator());
	}

	if (getParameterAsBoolean(PARAMETER_USE_SIN)) {
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.SINUS));
	}
	if (getParameterAsBoolean(PARAMETER_USE_COS)) {
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.COSINUS));
	}
	if (getParameterAsBoolean(PARAMETER_USE_TAN)) {
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.TANGENS));
	}
	if (getParameterAsBoolean(PARAMETER_USE_ATAN)) {
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.ARC_TANGENS));
	}

	if (getParameterAsBoolean(PARAMETER_USE_EXP)) {
		generators.add(new ExponentialFunctionGenerator(ExponentialFunctionGenerator.EXP));
	}
	if (getParameterAsBoolean(PARAMETER_USE_LOG)) {
		generators.add(new ExponentialFunctionGenerator(ExponentialFunctionGenerator.LOG));
	}

	if (getParameterAsBoolean(PARAMETER_USE_ABSOLUTE_VALUES)) {
		generators.add(new AbsoluteValueGenerator());
	}
	if (getParameterAsBoolean(PARAMETER_USE_MIN)) {
		generators.add(new MinMaxGenerator(MinMaxGenerator.MIN));
	}
	if (getParameterAsBoolean(PARAMETER_USE_MAX)) {
		generators.add(new MinMaxGenerator(MinMaxGenerator.MAX));
	}

	if (getParameterAsBoolean(PARAMETER_USE_CEIL)) {
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.CEIL));
	}
	if (getParameterAsBoolean(PARAMETER_USE_FLOOR)) {
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.FLOOR));
	}
	if (getParameterAsBoolean(PARAMETER_USE_ROUNDED)) {
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.ROUND));
	}
	return generators;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:66,代码来源:CompleteFeatureGenerationOperator.java

示例4: getGenerators

import com.rapidminer.generator.BasicArithmeticOperationGenerator; //导入依赖的package包/类
private List<FeatureGenerator> getGenerators() {
	List<FeatureGenerator> generators = new ArrayList<FeatureGenerator>();
	if (getParameterAsBoolean(PARAMETER_USE_PLUS))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.SUM));
	if (getParameterAsBoolean(PARAMETER_USE_DIFF))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.DIFFERENCE));
	if (getParameterAsBoolean(PARAMETER_USE_MULT))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.PRODUCT));
	if (getParameterAsBoolean(PARAMETER_USE_DIV))
		generators.add(new BasicArithmeticOperationGenerator(BasicArithmeticOperationGenerator.QUOTIENT));
	if (getParameterAsBoolean(PARAMETER_USE_RECIPROCALS))
		generators.add(new ReciprocalValueGenerator());
	if (getParameterAsBoolean(PARAMETER_USE_SQUARE_ROOTS)) {
		generators.add(new SquareRootGenerator());
	}
	if (getParameterAsBoolean(PARAMETER_USE_POWER_FUNCTIONS)) {
		generators.add(new PowerGenerator());
	}

	if (getParameterAsBoolean(PARAMETER_USE_SIN))
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.SINUS));
	if (getParameterAsBoolean(PARAMETER_USE_COS))
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.COSINUS));
	if (getParameterAsBoolean(PARAMETER_USE_TAN))
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.TANGENS));
	if (getParameterAsBoolean(PARAMETER_USE_ATAN))
		generators.add(new TrigonometricFunctionGenerator(TrigonometricFunctionGenerator.ARC_TANGENS));

	if (getParameterAsBoolean(PARAMETER_USE_EXP))
		generators.add(new ExponentialFunctionGenerator(ExponentialFunctionGenerator.EXP));
	if (getParameterAsBoolean(PARAMETER_USE_LOG))
		generators.add(new ExponentialFunctionGenerator(ExponentialFunctionGenerator.LOG));

	if (getParameterAsBoolean(PARAMETER_USE_ABSOLUTE_VALUES))
		generators.add(new AbsoluteValueGenerator());
	if (getParameterAsBoolean(PARAMETER_USE_MIN))
		generators.add(new MinMaxGenerator(MinMaxGenerator.MIN));
	if (getParameterAsBoolean(PARAMETER_USE_MAX))
		generators.add(new MinMaxGenerator(MinMaxGenerator.MAX));

	if (getParameterAsBoolean(PARAMETER_USE_CEIL))
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.CEIL));
	if (getParameterAsBoolean(PARAMETER_USE_FLOOR))
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.FLOOR));
	if (getParameterAsBoolean(PARAMETER_USE_ROUNDED))
		generators.add(new FloorCeilGenerator(FloorCeilGenerator.ROUND));
	return generators;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:49,代码来源:CompleteFeatureGenerationOperator.java


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