columns[i-1] = Integer.parseInt( reader.getHeaders()[i] );
}
while( reader.readRecord() )
{
String name = reader.get( 0 );
LinearInterpolator bi = new LinearInterpolator();
for( int i = 1; i < reader.getHeaderCount(); i++ )
{
double val = 0;
String textVal = reader.get( i );
try
{
val = Double.parseDouble( textVal );
bi.addPoint( columns[i-1], val );
} catch( Exception e )
{
log.error( "Bad string for value " + columns[i-1] + " line " + reader.getCurrentRecord() + " file " + csvFile + " was: '" + textVal + "'");
log.error( e.getMessage() );
}