ar1spectrum.m
来自「交互小波分析及其一致性分析」· M 代码 · 共 21 行
M
21 行
function P=ar1spectrum(ar1,period)
% AR1 power spectrum...
%
% power=ar1spectrum(ar1,period)
%
%
% (c) Aslak Grinsted 2002-2004
%
% -------------------------------------------------------------------------
% Copyright (C) 2002-2004, Aslak Grinsted
% This software may be used, copied, or redistributed as long as it is not
% sold and this copyright notice is reproduced on each copy made. This
% routine is provided as is without any express or implied warranties
% whatsoever.
freq=1./period;
P=(1-ar1.^2)./(abs(1-ar1.*exp(-2*pi*i*freq))).^2; %http://www.madsci.org/posts/archives/may97/864012045.Eg.r.html
%fixed typo in numerical recipes
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?