|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.generator.GaussianFunction
public class GaussianFunction
Generates a gaussian distribution for all attributes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.udo.cs.yale.operator.generator.TargetFunction |
|---|
TargetFunction.FunctionException |
| Field Summary | |
|---|---|
private double |
bound
|
| Constructor Summary | |
|---|---|
GaussianFunction()
|
|
| Method Summary | |
|---|---|
double |
calculate(double[] att)
Calculates the target function on arguments. |
double[] |
createArguments(int number,
RandomGenerator random)
Creates and returns a number of arguments. |
Attribute |
getLabel()
Returns the label attribute. |
void |
init(RandomGenerator random)
Does nothing. |
void |
setLowerArgumentBound(double lower)
Since circles are used the upper and lower bounds must be the same. |
void |
setTotalNumberOfAttributes(int number)
Does nothing. |
void |
setTotalNumberOfExamples(int number)
Does nothing. |
void |
setUpperArgumentBound(double upper)
Sets the upper bound for the arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double bound
| Constructor Detail |
|---|
public GaussianFunction()
| Method Detail |
|---|
public void init(RandomGenerator random)
init in interface TargetFunctionpublic void setTotalNumberOfExamples(int number)
setTotalNumberOfExamples in interface TargetFunctionpublic void setTotalNumberOfAttributes(int number)
setTotalNumberOfAttributes in interface TargetFunctionpublic void setLowerArgumentBound(double lower)
setLowerArgumentBound in interface TargetFunctionpublic void setUpperArgumentBound(double upper)
TargetFunction
setUpperArgumentBound in interface TargetFunctionpublic Attribute getLabel()
TargetFunction
getLabel in interface TargetFunction
public double calculate(double[] att)
throws TargetFunction.FunctionException
TargetFunction
calculate in interface TargetFunctionTargetFunction.FunctionException
public double[] createArguments(int number,
RandomGenerator random)
throws TargetFunction.FunctionException
TargetFunction
createArguments in interface TargetFunctionTargetFunction.FunctionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||