代码搜索:小样本
找到约 10,000 项符合「小样本」的源代码
代码结果 10,000
www.eeworm.com/read/295000/8191061
m 实现正态分布的伪随机数发生器.m
function creathist(mean1,sigma1,mean2,sigma2,scalar)
%CREATHIST(mean1,sigma1,mean2,sigma2,scalar)
% 函数作用:生成两个相互独立且满足Gauss分布的随机变量的样本
% 入口参数:mean1--样本1的均值
% sigma1--样本1的标准差
% mean2--样本2的均值
% sigma
www.eeworm.com/read/393098/8311652
m knn.m
%读取数据 2008-6-25 贾永库
train=xlsread('train.xls');
test=xlsread('test.xls');
%获得训练样本和测试样本的个数
[m,n]=size(train)
[m1,n1]=size(test)
answer=zeros(m1,1);
for i=[1:1:m1]
sim=zeros(m,2);
%对于每一
www.eeworm.com/read/173659/9644618
m hc742.m
%《数字信号处理教程——MATLAB释义与实现》第七章例7.4.2程序hc742
% 频率样本法过渡带所取样本数的影响
% 电子工业出版社出版 陈怀琛编著 2004年9月
%
N=65;N1=fix(N/6);N2=N-2*N1-1;
A=[ones(1,N1+1),zeros(1,N2),ones(1,N1)]; % 符幅特性样本序列
A1=[ones(1,N1+1),0.5,ze
www.eeworm.com/read/173659/9644915
m gfft.m
function X=gfft(x,k)
%《数字信号处理教程——MATLAB释义与实现》
% Goertzel算法子程序
% 电子工业出版社出版 陈怀琛编著 2004年9月
%
% X=gfft(x,k)
% ----------------------------------
% 用Goertzel算法计算序号为k的DFT样本
% x 输入序列,其长度即DFT长度
% k
www.eeworm.com/read/413249/11161607
m zizuzhi.m
function som_m
%产生样本数据P,P中包括三类共30个二维矢量
range=[-1 1;-1 1];%样本数据取值范围
class= 3;%样本数据类别数
num=10;%每类样本数据个数
std=0.1;%每类样本数据的方差
P=nngenc(range,class,num,std);
size(P)
%画第一幅图:样本数据分布图
figure,plot(P(1,
www.eeworm.com/read/267095/11195071
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/412269/11207799
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/266820/11211876
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/204090/15344732
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/102840/15756482
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,