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

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

于 2022-02-06 发布 文件大小:11.75 kB
0 119
下载积分: 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 个回复

  • VisualCDigitalImageProcessing
    这本是用VC++来实现图像处理的书藉,对于学习图像处理的来说是非常有用的.(This is VC++ to realize image processing books, for learning image processing is very useful.)
    2009-04-18 10:44:05下载
    积分:1
  • sha224
    经典的做哈希值的加密算法源码,使用c++语言写的。(To do the classic hash code encryption algorithm, using c++ language.)
    2011-12-15 16:11:00下载
    积分:1
  • 心电信号检测与特征值提取,诊断
    实现ECG和BCG信号采集和同步监测,对采集的信号进行了特征量提取并作出相应诊断,波形显示在液晶上。是不错的有关心电信号研究的资料。值得一看。
    2022-07-10 06:50:17下载
    积分:1
  • Enterprise Management System navigation example
    企业经营管理系统开发实例导航-小区物业管理,是很好的商业程序。-Enterprise Management System navigation example- district property management is good business procedures.
    2022-07-13 15:21:44下载
    积分:1
  • 音乐倒数计数器
    该代码通过对单片机的几个端口进行定义,将其与按键相连,按下某一个键时,实现倒数定时,当其时间倒数为0时,音乐响起,提醒时间到,通过Proteus和Keil软件对此功能实现仿真...
    2022-12-27 19:20:03下载
    积分:1
  • LOGO
    说明:  VCD LOGO程序!供各位朋友参考设计,这做VCD DVD机的方案还是有用的呀!(Procedures VCD LOGO! For friends reference design, which make VCD DVD machine program it is useful!)
    2008-09-30 20:51:33下载
    积分:1
  • levinson
    图1为均衡带限信号所引起失真的横向或格型自适应均衡器(其中横向FIR系统长M=11), 系统输入是取值为±1的随机序列,其均值为零;参考信号;信道具有脉冲响应: 式中用来控制信道的幅度失真(W = 2~4, 如取W = 2.9,3.1,3.3,3.5等),且信道受到均值为零、方差(相当于信噪比为30dB)的高斯白噪声的干扰。试比较基于下列几种算法的自适应均衡器在不同信道失真、不同噪声干扰下的收敛情况(对应于每一种情况,在同一坐标下画出其学习曲线): 1)横向/格-梯型结构LMS算法 2)横向/格-梯型结构RLS算法 并分析其结果。(Figure 1 is a band-limited signal caused balanced horizontal or lattice distortion adaptive equalizer (FIR system in which the lateral length M = 11), the system input is the value of a random sequence of ± 1, mean zero reference signal channel has impulse response: Wherein the amplitude of the distortion for the control channel (W = 2 ~ 4, and so as to take W = 2.9,3.1,3.3,3.5), and subjected to a channel with zero mean and variance (equivalent SNR is 30dB) Gaussian white noise. Compare the following types of algorithm-based adaptive equalizer in a different channel distortion, the convergence of different noise interference (corresponding to each situation, draw their learning curve in the same coordinate): 1) landscape/grid- LMS algorithm ladder structure 2) landscape/grid- RLS algorithm ladder structure And analyze the results.)
    2020-07-02 22:40:01下载
    积分:1
  • Ex3
    c++实现的静态链表 可以从屏幕输入来构建静态链表 数据结构重要的部分(c++ implemented statically linked list can be input from the screen to the important part to build a static linked list data structure)
    2012-11-27 15:19:25下载
    积分:1
  • 鬼影DDoS压力测试软件源码
    内含感染全盘,以及复活等超强悍功能,可做商用!完整源码,编译可过!(It contains all powerful functions such as infection and resurrection, so it can be commercially available. Complete source code, compile can pass!)
    2018-10-20 05:04:21下载
    积分:1
  • SQL Server 类,添加,修改,删除数据.
    SQL Server 类,添加,修改,删除数据.-SQL Server Class
    2022-06-28 18:42:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载