登录
首页 » c++ » 利用BP网络修改权值对y=sin(x)曲线实现拟合

利用BP网络修改权值对y=sin(x)曲线实现拟合

于 2022-02-06 发布 文件大小:11.75 kB
0 115
下载积分: 2 下载次数: 1

代码说明:

数据输入和归一化 %function[x,y,y1,Error]=BPnet(t)%清空环境变量 clc; clear;   num=1;%要拟合的曲线试举例 fori=0.01*pi:0.02*pi:2*pi%训练样本 x(num)=i;%输入数据 y(num)=sin(x(num));%期望输出 num=num+1; end num1=size(x,2); max_x=max(x);%训练样本归一化 max_y=max(y); min_x=min(x); min_y=min(y); %最大最小法(归一化) fori=1:num1 x(i)=2*((x(i)-min_x)/(max_x-min_x))-1; y(i)=2*((y(i)-min_y)/(max_y-min_y))-1; end   网格结构初始化 H=20;%隐含层神经元个数 w=2*rand(1,H)-1;%初始化隐层权值 v=2*rand(1,H)-1;%初始化输出层权值 t0=2*rand(1,H)-1;%隐层阈值

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • tokenizer
    its a c program for tokemizing
    2014-12-23 14:32:44下载
    积分:1
  • VC++纯windows API编程-趣味程序,点不中的按钮(我用来逗女友【偷笑】)
    初始界面: 1.背景图带文字:你喜欢 VC 吗? 2.按钮有 yes & no 操作:点 yes 则切换到另一个画面,提示真是好学生,至于 no 按钮,如题,点不中。 备注:其实可以按键盘 Y&N 操作yes&no按钮,选no时有消息框,内容为:请再想想,好学生都喜欢VC 说明:其中的背景图的文字可以随意修改,重新编译
    2022-08-11 12:27:11下载
    积分:1
  • vp8_bitstream
    VP8 Data Format and Decoding Specification
    2010-09-13 18:16:29下载
    积分:1
  • [code4app.com]BadgedTableView_10802
    TableView做界面的实例,适合于初学者做界面(A sample of TableView)
    2012-05-16 10:04:36下载
    积分:1
  • Clock
    VC++可切换到数字模式的圆形时钟,VC++编程学习源码,很好的参考资料。(VC++ round the clock to switch to digital mode, VC++ programming learning source, a good reference.)
    2014-02-08 17:22:58下载
    积分:1
  • K60ADC
    K60实现16bitadc采集,可移植性强。(K60 achieve 16bitadc collection, portability.)
    2021-03-24 09:19:15下载
    积分:1
  • 无需用户名和密码 直接发送邮件至对方邮箱 测试通过版,附完整源码下载
    直邮项目源码,无需 用户名密码         直达目标邮箱         ,仅供参考学习交流使用,请勿非法用途                                                                     
    2020-10-24 20:20:01下载
    积分:1
  • ImageViewCtrl
    一个picture控件类,可以对图片作简单处理,如:放大、缩小、滚动浏览等。(A picture control class, you can make a simple image processing, such as: zoom, scroll and so on.)
    2013-08-20 17:18:04下载
    积分:1
  • radmin21
    说明:  务器端基于select I/O模型。为防止程序界面阻塞,有一个子线程用于不断接收socket并select其中的处理。客户端只有一个线程函数,不过其利用率很高,可用于远程目录交换,请求文件大小,创建若干线程来下载文件。文件传输有上传和下载,还有对等传输,这个项目中,传输文件具体指下载。(Client server based on select I/O model. Programming interfaces in order to prevent obstruction, there is a sub-thread for receiving socket and select which treatment. There is only one client thread function, but its utilization very high, can be used for remote directory exchange, request the file size, create a number of threads to download the file. File transfer are uploading and downloading, as well as peer-to-peer transmission, this project, the specific means to transfer files to download.)
    2008-10-20 11:08:26下载
    积分:1
  • xiu
    说明:  这段小程序是用于ATTINY13控制PT2262自动发射数据,再加上数据来源于ATTINY13AD采集。(ATTINY13 this applet is used to control the auto-launch data PT2262, coupled with the data collected from ATTINY13AD.)
    2010-03-17 10:26:42下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载