|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.generator.RingClusteringFunction
public class RingClusteringFunction
Generates a data set for two attributes. The data build three rings which are around each other.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.udo.cs.yale.operator.generator.TargetFunction |
|---|
TargetFunction.FunctionException |
| Field Summary | |
|---|---|
private double |
bound
|
private Attribute |
label
|
private RandomGenerator |
random
|
| Constructor Summary | |
|---|---|
RingClusteringFunction()
|
|
| 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
private Attribute label
private RandomGenerator random
| Constructor Detail |
|---|
public RingClusteringFunction()
| 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 | ||||||||