精品范文模板 可修改删除
免责声明:图文来源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。
撰写人:___________日 期:___________
源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。
#define A
#define B
#define a
#define b
double d_in[Data][In],d_out[Data][Out];
double w[Neuron][In],o[Neuron],v[Out][Neuron];
double Maxin[In],Minin[In],Maxout[Out],Minout[Out];
double OutputData[Out];
double dv[Out][Neuron],dw[Neuron][In];
double e;
void writeTest(){
FILE *fp1,*fp2;
double r1,r2;
int i;
srand((unsigned)time(NULL));
if((fp1=fopen("D:\\","w"))==NULL){
printf("can not open the in file\n");
exit(0);
}
if((fp2=fopen("D:\\","w"))==NULL){
printf("can not open the out file\n");
exit(0);
}
for(i=0;i<Data;i++){
r1=rand()%1000/;
r2=rand()%1000/;
fprintf(fp1,"%lf %lf\n",r1,r2);
fprintf(fp2,"%lf \n",r1+r2);
}
fclose(fp1);
fclose(fp2);
}
void readData(){
FILE *fp1,*fp2;
int i,j;
if((fp1=fopen("D:\\","r"))==NULL){
精品范文模板 可修改删除
免责声明:图文来源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。
printf("can not open the in file\n");
exit(0);
}
for(i=0;i<Data;i++)
for(j=0; j<In; j++)
fscanf(fp1,"%lf",&d_in[i][j]);
fclose(fp1);
if((fp2=fopen("D:\\","r"))==NULL){
printf("can not open the out file\n");
exit(0);
}
for(i=0;i<Data;i++)
BP神经网络实验报告资料 来自淘豆网m.daumloan.com转载请标明出处.