public class DataSetGenerator extends Object
Modifier and Type | Class and Description |
---|---|
class |
DataSetGenerator.DataPoint |
Modifier and Type | Field and Description |
---|---|
(package private) Vector<DataSetGenerator.DataPoint> |
allPoints |
private static String |
CLASS_1 |
private static String |
CLASS_2 |
private static String |
CLASS_3 |
private static String |
CLASS_4 |
private static String |
CLASS_5 |
private static String |
CLASS_6 |
static String[] |
CLASS_NAMES |
(package private) Vector<DataSetGenerator.DataPoint>[] |
classPoints |
private static org.apache.commons.math.random.RandomDataImpl |
rand |
Constructor and Description |
---|
DataSetGenerator() |
Modifier and Type | Method and Description |
---|---|
private float[][] |
doublesToFloats(double[][] doubles) |
private Vector<DataSetGenerator.DataPoint> |
generatePoints(String name,
int num,
double x,
double y,
double sigmaX,
double sigmaY) |
double[][] |
get3DPointsAsDoubles() |
float[][] |
get3DPointsAsFloats() |
double[][][] |
getData() |
double[][][] |
getData3D() |
String |
getDataSetAsString() |
DataSetGenerator.DataPoint[] |
getPoints() |
double[][] |
getPointsAsDoubles() |
float[][] |
getPointsAsFloats() |
static void |
main(String[] args) |
private void |
makeNonNegative(Vector<DataSetGenerator.DataPoint> points) |
void |
printDataSet() |
private static final String CLASS_1
private static final String CLASS_2
private static final String CLASS_3
private static final String CLASS_4
private static final String CLASS_5
private static final String CLASS_6
public static final String[] CLASS_NAMES
private static org.apache.commons.math.random.RandomDataImpl rand
Vector<DataSetGenerator.DataPoint> allPoints
Vector<DataSetGenerator.DataPoint>[] classPoints
public void printDataSet()
public String getDataSetAsString()
private void makeNonNegative(Vector<DataSetGenerator.DataPoint> points)
points
- vector of dataPointspublic static void main(String[] args)
private Vector<DataSetGenerator.DataPoint> generatePoints(String name, int num, double x, double y, double sigmaX, double sigmaY)
public DataSetGenerator.DataPoint[] getPoints()
public double[][] getPointsAsDoubles()
public double[][] get3DPointsAsDoubles()
public float[][] getPointsAsFloats()
public float[][] get3DPointsAsFloats()
private float[][] doublesToFloats(double[][] doubles)
public double[][][] getData()
public double[][][] getData3D()