|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.generator.ClassificationFunction
edu.udo.cs.yale.operator.generator.RandomClassificationFunction
public class RandomClassificationFunction
The label is randomly chosen.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.udo.cs.yale.operator.generator.TargetFunction |
|---|
TargetFunction.FunctionException |
| Field Summary | |
|---|---|
private RandomGenerator |
random
|
| Fields inherited from class edu.udo.cs.yale.operator.generator.ClassificationFunction |
|---|
label, lower, upper |
| Constructor Summary | |
|---|---|
RandomClassificationFunction()
|
|
| Method Summary | |
|---|---|
double |
calculate(double[] args)
Calculates the target function on arguments. |
void |
init(RandomGenerator randomGenerator)
Does nothing. |
| Methods inherited from class edu.udo.cs.yale.operator.generator.ClassificationFunction |
|---|
createArguments, getLabel, setLowerArgumentBound, setTotalNumberOfAttributes, setTotalNumberOfExamples, setUpperArgumentBound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private RandomGenerator random
| Constructor Detail |
|---|
public RandomClassificationFunction()
| Method Detail |
|---|
public void init(RandomGenerator randomGenerator)
ClassificationFunction
init in interface TargetFunctioninit in class ClassificationFunctionpublic double calculate(double[] args)
TargetFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||