|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.generator.FeatureGenerator
edu.udo.cs.yale.generator.BinaryNumericalGenerator
edu.udo.cs.yale.generator.PowerGenerator
public class PowerGenerator
This class has two numerical input attributes and one output attribute. Calculates the power of the input attribute to the second.
| Field Summary |
|---|
| Fields inherited from class edu.udo.cs.yale.generator.FeatureGenerator |
|---|
resultAttributes, SELECTION_MODE_ALL, SELECTION_MODE_RESTRICTIVE |
| Constructor Summary | |
|---|---|
PowerGenerator()
|
|
| Method Summary | |
|---|---|
double |
calculateValue(double value1,
double value2)
|
java.lang.String |
getFunction()
Sets the function name. |
boolean |
isCommutative()
Must return true if this generator is commutative. |
boolean |
isSelfApplicable()
Must return true if this generator is self applicable. |
FeatureGenerator |
newInstance()
Subclasses must implement this method so that a new instance of this generator class is returned. |
void |
setFunction(java.lang.String name)
Sets the function name. |
| Methods inherited from class edu.udo.cs.yale.generator.BinaryNumericalGenerator |
|---|
generate, getInputAttributes, getInputCandidates, getOutputAttributes, toString |
| Methods inherited from class edu.udo.cs.yale.generator.FeatureGenerator |
|---|
argumentsSet, checkCompatibility, createGeneratorForFunction, equals, generateAll, getArgument, getExampleTable, getSelectionMode, selectGenerator, setArguments, setExampleTable, setSelectionMode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PowerGenerator()
| Method Detail |
|---|
public FeatureGenerator newInstance()
FeatureGenerator
newInstance in class FeatureGeneratorpublic boolean isCommutative()
BinaryNumericalGenerator
isCommutative in class BinaryNumericalGeneratorpublic boolean isSelfApplicable()
BinaryNumericalGenerator
isSelfApplicable in class BinaryNumericalGenerator
public double calculateValue(double value1,
double value2)
calculateValue in class BinaryNumericalGeneratorpublic void setFunction(java.lang.String name)
FeatureGenerator
setFunction in class FeatureGeneratorpublic java.lang.String getFunction()
FeatureGenerator
getFunction in class FeatureGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||