下载此文档

BP神经网络实验报告资料.doc


文档分类:IT计算机 | 页数:约10页 举报非法文档有奖
1/10
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/10 下载此文档
文档列表 文档介绍
精品范文模板 可修改删除
免责声明:图文来源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。
撰写人:___________日 期:___________
源于网络搜集,版权归原作者所以
若侵犯了您的合法权益,请作者与本上传人联系,我们将及时更正删除。
#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转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
最近更新