资源简介
用matlab编程实现无标度度网络算法
代码片段和文件信息
% This is the BA_Scale Model by Fan Jin.
% At first there are only m nodes and no edge then the m+1st node is
% connected with the above m nodes
% usage: Nodes = BA(Nm)
% the parameter:N----network size
% m----a new node with m new edges
% can randomly initialize the N and the m by yourself
% the diagonal elements of the matrix also equal to -degree
% Nodes----the final coupling matrix
% The following message(s) may not be displayed correctly for they contain Chinese charactors.
% list----生成的一个辅助向量,该向量中的元素为每条边端点的节点。for example 假设网络中节点4的度为7,则在list向量中会存在7个4,而这7个4的位置不一定是连续在一起的。
% preferential attachment体现在随机的从list向量中选取元素,选中哪个元素,该元素表示的节点即被选中。由于list向量中每个节点的个数与它的度有关,因此,度越大的点被选中的概率越大。
function [NodesCii]=BA(Nm)
% N=10m=3;
Nodes=zeros(N);
Cii=zeros(1N);
t=zeros(1N);
%Nodes=sparse(N);
for i=1:m
Nodes(im+1)=1;
Nodes(m+1i)=1;
A(i)=i;
end
for i=m+1:2*m
A(i)=m+1;
end
for n=m+2:N
相关资源
- MATLAB神经网络43个案例分析源代码
- matlab-bgl工具箱
- 《MATLAB 神经网络30个案例分析》源程
- 长江水质预测2005年数学建模+神经网络
- 基于遗传算法的小波神经网络在股票
-
基于SIMUli
nk的汽车发动机怠速模糊神 - 基于蚁群算法和神经网络匹配算法的
- 基于matlab手写识别
- 《MATLAB 神经网络30个案例分析》所有
- matlab神经网络30个案例分析278234
- 基于MATLAB的车牌识别算法
- 斯坦福机器学习编程作业machine-learn
- matlab 复杂网络工具箱
- CNN卷积神经网络图像识别matlab
- 神经网络进行手写体验证码识别的代
- 网络化控制系统的H∞滤波器设计本科
- Matlab神经网络工具箱使用教程
-
matlab simuli
nk simevent 建模入门 - 卷积神经网络识别手写数字图像
- 陈继光《Matlab与自适应神经网络模糊
- MATLAB神经网络30个案例分析[全文PDF]
- 神经网络43个案例分析
- 基于神经网络车牌识别识别
- 基于MATLAB 6.X的系统分析与设计 神经网
- 多种PID控制算法-matlab 实现
- 传感器网络节点定位算法matlab代码.
- 基于matlab的人脸识别源代码235297
- 车牌识别matlab程序235178
- 神经网络、遗传算法、支持向量机、
- 贝叶斯网络Matlab源代码
评论
共有 条评论