public class Genesis
extends java.lang.Object
Class for generating the individuals
Constructor and Description |
---|
Genesis()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
DatasetToArray(double[][] array,
OpenDataset dataset)
Transforms the dataset into a double matrix
|
static double |
frandom(double min,
double max)
Generates a random number between min and max
|
static int |
irandom(double min,
double max)
Generates a random integer number between min and max
|
static void |
main(java.lang.String[] args)
Main function
|
public static void main(java.lang.String[] args)
Main function
args
- Arguments to main methodpublic static void DatasetToArray(double[][] array, OpenDataset dataset)
Transforms the dataset into a double matrix
array
- Output matrixdataset
- Input datasetpublic static double frandom(double min, double max)
Generates a random number between min and max
min
- Min valuemax
- Max valuepublic static int irandom(double min, double max)
Generates a random integer number between min and max
min
- Min valuemax
- Max value