* How much of the data is input.
*/
public void write(final double[] data, final int inputCount) {
if (this.idealCount == 0) {
final BasicNeuralData inputData = new BasicNeuralData(data);
this.dataset.add(inputData);
} else {
final BasicNeuralData inputData = new BasicNeuralData(
this.inputCount);
final BasicNeuralData idealData = new BasicNeuralData(
this.idealCount);
int index = 0;
for (int i = 0; i < this.inputCount; i++) {
inputData.setData(i, data[index++]);
}
for (int i = 0; i < this.idealCount; i++) {
idealData.setData(i, data[index++]);
}
this.dataset.add(inputData, idealData);
}