|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TargetFunction
A target function which is used for the ExampleSetGenerator operator. All target function
will need an empty constructor since they are initialized via reflection.
| Nested Class Summary | |
|---|---|
static class |
TargetFunction.FunctionException
Will be thrown if an error occurrs during the calculation of the target function. |
| Method Summary | |
|---|---|
double |
calculate(double[] args)
Calculates the target function on arguments. |
double[] |
createArguments(int dimension,
RandomGenerator random)
Creates and returns a number of arguments. |
Attribute |
getLabel()
Returns the label attribute. |
void |
init(RandomGenerator random)
Should be called before the data is created. |
void |
setLowerArgumentBound(double lower)
Sets the lower bound for the arguments. |
void |
setTotalNumberOfAttributes(int number)
Sets the maximal number of attributes. |
void |
setTotalNumberOfExamples(int number)
Sets the maximal number of examples. |
void |
setUpperArgumentBound(double upper)
Sets the upper bound for the arguments. |
| Method Detail |
|---|
void init(RandomGenerator random)
double calculate(double[] args)
throws TargetFunction.FunctionException
TargetFunction.FunctionExceptionAttribute getLabel()
double[] createArguments(int dimension,
RandomGenerator random)
throws TargetFunction.FunctionException
TargetFunction.FunctionExceptionvoid setLowerArgumentBound(double lower)
void setUpperArgumentBound(double upper)
void setTotalNumberOfExamples(int number)
void setTotalNumberOfAttributes(int number)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||