|
|||||||||
| 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.SingularNumericalGenerator
public abstract class SingularNumericalGenerator
Generators of this class will have one numerical input attribute and one output attribute.
| Field Summary | |
|---|---|
private static Attribute[] |
INPUT_ATTR
|
| Fields inherited from class edu.udo.cs.yale.generator.FeatureGenerator |
|---|
resultAttributes, SELECTION_MODE_ALL, SELECTION_MODE_RESTRICTIVE |
| Constructor Summary | |
|---|---|
SingularNumericalGenerator()
|
|
| Method Summary | |
|---|---|
abstract double |
calculateValue(double value)
Subclasses have to implement this method to calculate the function result. |
void |
generate(DataRow data)
Generates the new attribute values for the example e and returns the new attribute values as doubles. |
Attribute[] |
getInputAttributes()
Returns an array of Attributes where the length is the arity of the generator, [i] is the attribute type of the i-th argument. |
java.util.List<Attribute[]> |
getInputCandidates(ExampleSet exampleSet,
int maxDepth,
java.lang.String[] functions)
Returns all compatible input attribute arrays for this generator from the given example set as list. |
Attribute[] |
getOutputAttributes(ExampleTable input)
Returns the generated attributes types. |
java.lang.String |
toString()
|
| Methods inherited from class edu.udo.cs.yale.generator.FeatureGenerator |
|---|
argumentsSet, checkCompatibility, createGeneratorForFunction, equals, generateAll, getArgument, getExampleTable, getFunction, getSelectionMode, newInstance, selectGenerator, setArguments, setExampleTable, setFunction, setSelectionMode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Attribute[] INPUT_ATTR
| Constructor Detail |
|---|
public SingularNumericalGenerator()
| Method Detail |
|---|
public abstract double calculateValue(double value)
public Attribute[] getInputAttributes()
FeatureGenerator
getInputAttributes in class FeatureGeneratorpublic Attribute[] getOutputAttributes(ExampleTable input)
FeatureGenerator
getOutputAttributes in class FeatureGenerator
public java.util.List<Attribute[]> getInputCandidates(ExampleSet exampleSet,
int maxDepth,
java.lang.String[] functions)
getInputCandidates in class FeatureGenerator
public void generate(DataRow data)
throws GenerationException
FeatureGenerator
generate in class FeatureGeneratorGenerationExceptionpublic java.lang.String toString()
toString in class FeatureGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||