public void fitModel(String opFileName) {
double alpha = 0.477;
double[][] data = new double[time.length][order];
for (int row = 0; row < time.length; row++) {
for (int col = 0; col < order; col++) {
data[row][col] = Math.tanh(alpha * (col + 1) * time[row]);
}
}
computeCoeff(data);
doPrediction(data, opFileName, true);
}
System.out.println();
System.out.println("Model Parameters :");
for (int i = 0; i < coeff.length; i++) {
System.out.println(coeff[i]);
}
System.out.println();
System.out.println("% deviation : " + deviation
/ (prediction.length - zeroRecCnt));
}
}
The command prompt displays three coloumns input,output, prediction . I need to read these three coloumns , and write the data to a text file . CAn you please help me out with this .