声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1772|回复: 5

[Fortran] werner 反褶积的程序

[复制链接]
发表于 2008-1-9 16:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我是第一次来论坛,请那位高手帮帮我,帮我找一些沃纳反褶积的资料和程序,谢谢!!!
回复
分享到:

使用道具 举报

发表于 2008-1-13 09:54 | 显示全部楼层
个人只找到matlab和vc的,没发现fortran的
 楼主| 发表于 2008-1-15 11:23 | 显示全部楼层

谢谢你

那把你找到的matlab和vc的能否让我看看,谢谢阿
发表于 2008-1-18 10:38 | 显示全部楼层
 楼主| 发表于 2008-1-22 17:08 | 显示全部楼层

我的邮箱是:wangyani0704@yahoo.com.cn

发表于 2008-1-29 15:17 | 显示全部楼层
  1. function o= ls_inv_filter(w,wavelet,mu)
  2. %LS_INV_FILTER: Spiking deconvolution
  3. %
  4. % This program computes an inverse filter (Spiking filter)
  5. % from an estimate of a seismic wavelet. The actual
  6. % output (convolution of the filter with the wavelet) is
  7. % also computed.
  8. %
  9. % [f,o] = LS_INV_FILTER(w,NF,Lag,mu)
  10. %
  11. % IN w: the wavelet
  12. % NF: lenght if the inverse filter
  13. % Lag: the position of the spike in the desired output
  14. % mu: Prewhitening in %
  15. %
  16. % OUT f: the filter
  17. % o: the ouput or convolution of the filter with
  18. % the wavelet
  19. %
  20. % Example:
  21. %
  22. % w = [2,1]; % the wavelet
  23. % [f,o] = ls_inv_filter(w,20,1,2); % the filter and the output
  24. % figure(1); plot(f);title('Filter')
  25. % figure(2); plot(o);title('Wavelet \otimes Filter')

  26. NW = max(size(w)); % lenght of the wavelet

  27. NF=max(size(wavelet));
  28. [mc,mr]=size(wavelet);
  29. if mc <= mr; wavelet = wavelet'; end;

  30. [mc,mr]=size(w);
  31. if mc <= mr; w = w'; end;

  32. b=conv(wavelet,w);
  33. C = convmtx(w,NF); % Convolution matrix

  34. R = C'*C+mu*eye(NF)/100.; % Toeplitz Matrix
  35. rhs = C'*b; % Right hand side vector
  36. f = inv(R)*rhs; % Filter

  37. o = conv(f,w); % Actual output
  38. % o=o(NF:NW+(NF-1),:);
  39. % o=o(1:NW,:);
  40. n=floor(NF/2);
  41. o=o(n:NW+(n-1),:);  
复制代码
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 14:55 , Processed in 0.050252 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表