- 积分
- 2010
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-7-7
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 ccnasyq 于 2013-8-2 16:35 编辑
本人刚开始接触MATLAB小波分析,对 help wavelet 的英文解析较为不懂,对理解小波函数造成很大困难,于是对help wavelet 的用法进行了简单翻译,与同志们分享,如有不到之处,请大家之处。
wavelet 1D Wavelet transform with optional singificance testing
% 带可选显著性检验的一维小波变换
[WAVE,PERIOD,SCALE,COI] = wavelet(Y,DT,PAD,DJ,S0,J1,MOTHER,PARAM)
Computes the wavelet transform of the vector Y (length N),
with sampling rate DT.
% 计算采样率为DT的矢量Y(长度为N)的小波变换
By default, the Morlet wavelet (k0=6) is used.
%默认情况下,使用Morlet小波(k0=6)
The wavelet basis is normalized to have total energy=1 at all scales.
INPUTS:
Y = the time series of length N.
% 长度为N的时间序列
DT = amount of time between each Y value, i.e. the sampling time.
%DT = 每个Y值之间的时间量
OUTPUTS:
WAVE is the wavelet transform of Y. This is a complex array
of dimensions (N,J1+1). FLOAT(WAVE) gives the wavelet amplitude,
% WAVE 是Y的小波变换。这是一个多维(N,J1)的复杂矩阵。FLOAT(WAVE)给出了小波振幅
ATAN(IMAGINARY(WAVE),FLOAT(WAVE) gives the wavelet phase.
%ATAN(IMAGINARY(WAVE),FLOAT(WAVE)给出了小波的阶。
The wavelet power spectrum is ABS(WAVE)^2.
%小波功率谱是 ABS(WAVE)^2
Its units are sigma^2 (the time series variance).
%它的单位是Σ^ 2(时间序列方差)
OPTIONAL INPUTS:
*** Note *** setting any of the following to -1 will cause the default
value to be used.
PAD = if set to 1 (default is 0), pad time series with enough zeroes to get
N up to the next higher power of 2. This prevents wraparound
from the end of the time series to the beginning, and also
speeds up the FFT's used to do the wavelet transform.
This will not eliminate all edge effects (see COI below).
% PAD = 如果设置为1(默认为0),用足够的0填充时间序列使得N最高达到下一个更高的2次幂。
这可以防止从时间序列的末尾到开始的环绕,也加快用来做小波变换的傅里叶变换。
这并不能消除所有的边缘效应(参照下面的 COI说明)
DJ = the spacing between discrete scales. Default is 0.25.
A smaller # will give better scale resolution, but be slower to plot.
%DJ = 离散尺度之间的间距。默认是0.25。
一个更小的 % 将得到更好的尺度分辨率,但画图会变慢。
S0 = the smallest scale of the wavelet. Default is 2*DT.
% S0= 小波的最小尺度。默认为2*DT
J1 = the # of scales minus one. Scales range from S0 up to S0*2^(J1*DJ),
to give a total of (J1+1) scales. Default is J1 = (LOG2(N DT/S0))/DJ.
%J1= #尺度减一.尺度范围冲S0至S0*2^(J1*DJ),直至到得到(J1+1) 尺度。默认是
J1 =(LOG2(N DT/S0))/DJ
MOTHER = the mother wavelet function.
The choices are 'MORLET', 'PAUL', or 'DOG'
%MOTHER = 小波母函数
选择为 'MORLET', 'PAUL', or 'DOG'
%COI = 如果指定了,就返回 Cone-of-Influence,这是一个N点的矢量,包含了在那
特定时间有用信息的最大周期。大于这的周期wie边缘效应。这可以用来在等值线画图上绘制COI线
通过以下命令:
contour(time,log(period),log(power))
plot(time,log(coi),'k')
|
评分
-
查看全部评分
|