private double determineInputFieldValue(final InputField field,
final int index) {
double result = 0;
if( field instanceof InputFieldCSVText ) {
final InputFieldCSVText fieldCSV = (InputFieldCSVText) field;
final ReadCSV csv = this.csvMap.get(field);
String v = csv.get(fieldCSV.getOffset());
if( !fieldCSV.getMappings().containsKey(v) ) {
throw new NormalizationError("Undefined class value: " + v);
} else {
result = fieldCSV.getMappings().get(v);
}
} else if (field instanceof InputFieldCSV) {
final InputFieldCSV fieldCSV = (InputFieldCSV) field;
final ReadCSV csv = this.csvMap.get(field);
result = csv.getDouble(fieldCSV.getOffset());
} else if (field instanceof InputFieldMLDataSet) {
final InputFieldMLDataSet neuralField =
(InputFieldMLDataSet) field;
final MLDataFieldHolder holder = this.dataSetFieldMap
.get(field);