final int inputCount = flat.getLayerCounts()[2];
flat.setRBF(new RadialBasisFunction[hiddenCount]);
for (final String line : section.getLines()) {
RadialBasisFunction rbf = null;
final List<String> cols = EncogFileSection
.splitColumns(line);
final String name = "org.encog.mathutil.rbf." + cols.get(0);
try {
final Class<?> clazz = Class.forName(name);
rbf = (RadialBasisFunction) clazz.newInstance();
} catch (final ClassNotFoundException e) {
throw new PersistError(e);
} catch (final InstantiationException e) {
throw new PersistError(e);
} catch (final IllegalAccessException e) {
throw new PersistError(e);
}
rbf.setWidth(CSVFormat.EG_FORMAT.parse(cols.get(1)));
rbf.setPeak(CSVFormat.EG_FORMAT.parse(cols.get(2)));
rbf.setCenters(new double[inputCount]);
for (int i = 0; i < inputCount; i++) {
rbf.getCenters()[i] = CSVFormat.EG_FORMAT.parse(cols
.get(i + 3));
}
flat.getRBF()[index++] = rbf;
}