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));
}
}
命令提示符显示输入、输出、预测三列。我需要读取这三个列,并将数据写入文本文件。你能帮我解决这个问题吗?