public class LinearPerceptronDataGenerator extends Object implements DataGenerator<double[],PerceptronClass>
Constructor and Description |
---|
LinearPerceptronDataGenerator(double range,
int dims,
double prop) |
LinearPerceptronDataGenerator(double range,
int dims,
double prop,
int seed)
The range for each dimension
|
Modifier and Type | Method and Description |
---|---|
IndependentPair<double[],PerceptronClass> |
generate() |
no.uib.cipr.matrix.Vector |
getNormDirection() |
no.uib.cipr.matrix.Vector |
getOrigin() |
no.uib.cipr.matrix.Vector[] |
getPlane() |
void |
setError(double d) |
public LinearPerceptronDataGenerator(double range, int dims, double prop)
range
- the range of valuesdims
- the number of dimentionsprop
- for both the selection of the origin and selection of the direction of the line of seperate, one dimention is chosen to be limited to the middle of range by this proportionpublic LinearPerceptronDataGenerator(double range, int dims, double prop, int seed)
range
- dims
- prop
- seed
- public IndependentPair<double[],PerceptronClass> generate()
generate
in interface DataGenerator<double[],PerceptronClass>
public no.uib.cipr.matrix.Vector getOrigin()
public no.uib.cipr.matrix.Vector getNormDirection()
public no.uib.cipr.matrix.Vector[] getPlane()
public void setError(double d)