?? test.java
字號:
package structure;
import javasci.*;
public class Test {
public static void main(String[] args) {
ReadSample rs=new ReadSample();
Net net=new Net();
String dir=System.getProperty("user.dir");
rs.read();
rs.print();
double[][] in=rs.getInput();
double[] out;
double[] plotIn=new double[rs.getRow()],plotOut=new double[rs.getRow()];
SciDoubleArray A,B;
for(int i=0;i<rs.getRow();i++){
out=net.compute(in[i]);
plotIn[i]=in[i][0];
plotOut[i]=out[0];
for(int j=0;j<out.length;j++)
System.out.print(out[j]+" ");
System.out.println();
}
/******************************
* 將結果用Scilab顯示
* ***************************/
A=new SciDoubleArray("A",1,rs.getRow(),plotOut);
B=new SciDoubleArray("B",1,rs.getRow(),plotIn);
//Scilab.Exec("exec(''D:\\JAVADEV\\workspace\\ANN\\plot.sce'')");
Scilab.Exec("exec(''"+dir+"\\plot.sce'')");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -