output = new Point2D[numberOfPoints + 1];
int counter = 1;
List<DataSetRow> rows = dataSet.getRows();
for (int i = 0; i < rows.size(); i++) {
DataSetRow row = rows.get(i);
<BUG>nnet.setInput(row.getInput());

nnet.calculate();

Neuron outputNeuron = nnet.getOutputNeurons()[0];
</BUG>
double err = outputNeuron.getOutput();

output = new Point2D[numberOfPoints + 1];
int counter = 1;
List<DataSetRow> rows = dataSet.getRows();
for (int i = 0; i < rows.size(); i++) {
DataSetRow row = rows.get(i);
neuralNet.setInput(row.getInput());
neuralNet.calculate();
Neuron outputNeuron = neuralNet.getOutputNeurons().get(0);
double err = outputNeuron.getOutput();
