|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.generator.GaussianMixtureFunction
public class GaussianMixtureFunction
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 static int |
CLUSTER_PER_DIMENSION
The number of gaussians per dimension. |
private java.util.List<Cluster> |
clusters
The list of clusters. |
private double |
currentLabel
The label for the last generated point. |
(package private) Attribute |
label
The label attribute. |
private double |
lowerBound
The lower bound for the dataset. |
private int |
numberOfAttributes
The number of attributes. |
private double |
upperBound
The upper bound for the dataset. |
| Constructor Summary | |
|---|---|
GaussianMixtureFunction()
|
|
| 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)
Initializes some gaussian clusters. |
void |
setLowerArgumentBound(double lower)
Since circles are used the upper and lower bounds must be the same. |
void |
setTotalNumberOfAttributes(int number)
Sets the total number of attributes. |
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 static int CLUSTER_PER_DIMENSION
private java.util.List<Cluster> clusters
Attribute label
private double currentLabel
private int numberOfAttributes
private double lowerBound
private double upperBound
| Constructor Detail |
|---|
public GaussianMixtureFunction()
| Method Detail |
|---|
public void setLowerArgumentBound(double lower)
setLowerArgumentBound in interface TargetFunctionpublic void setUpperArgumentBound(double upper)
TargetFunction
setUpperArgumentBound in interface TargetFunctionpublic void init(RandomGenerator random)
init in interface TargetFunctionpublic void setTotalNumberOfExamples(int number)
setTotalNumberOfExamples in interface TargetFunctionpublic void setTotalNumberOfAttributes(int number)
setTotalNumberOfAttributes 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 | ||||||||