*/
public static BasicMLDataSet generate(final long seed,
final int count, final int inputCount,
final int idealCount, final double min, final double max) {
LinearCongruentialGenerator rand =
new LinearCongruentialGenerator(seed);
final BasicMLDataSet result = new BasicMLDataSet();
for (int i = 0; i < count; i++) {
final MLData inputData = new BasicMLData(inputCount);
for (int j = 0; j < inputCount; j++) {
inputData.setData(j, rand.range(min, max));
}
final MLData idealData = new BasicMLData(idealCount);
for (int j = 0; j < idealCount; j++) {
idealData.setData(j, rand.range(min, max));
}
final BasicMLDataPair pair = new BasicMLDataPair(inputData,
idealData);
result.add(pair);