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