K-SVD 源代码
K-SVD是一种经典的字典训练算法,依据误差最小原则,对误差项进行SVD分解,选择使误差最小的分解项作为更新的字典原子和对应的原子系数,经过不断的迭代从而得到优化的解。
%--------------SVD-TLS算法-----------------% clear loops = 20; % loops 是独立实验次数 M = 100; pe =30; p=0; for loop=1:loops …
%ARMA谱估计 clear all %设置观测数据 N1=128; n=(0:N1-1); x1=sqrt(20).*sin(2.*pi.*0.2*n)+sqrt(2).*sin(2.*pi.*0.213*n); x=x1+randn(1,N1)…
// k阶费那波契序列.cpp : Defines the entry point for the console application. // #include #include typedef struct QNode{ …
硬件:急需K型热点偶温度电压曲线参数表,请大虾给我一份,温度范围20-400摄氏度。谢谢!! [晓奇] [22次] 01-9-17 下午 02:51:48 xuxiaoqi@pub.zhongshan.gd.cn ad596/7里面的数据太笼统,分度太粗。…
//ICC-AVR application builder : 2008-6-2 13:35:39 // Target : M16 // Crystal: 1.0000Mhz #include #include void port_ini…
figure; plot(1:i, RMSE, '-', 1:i, RMSE, 'o'); xlabel('Epochs'); ylabel('RMSE'); figure; plot(1:i, diff_W1, 1:i, diff_W2); xlabe…