fftnoise - generate noise with a specified power spectrum

버전 1.0.0.0 (1.65 KB) 작성자: Aslak Grinsted
Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation.
다운로드 수: 831
업데이트 날짜: 2011/7/7

라이선스 보기

USAGE: noise=fftnoise(f[,Nseries])

INPUTS:
f: the fft of a time series (must be a column vector)
Nseries: number of noise series to generate. (default=1)

OUTPUT:
noise: surrogate series with same power spectrum as f. (each column is a surrogate).

------ Example: ------
%calculate if the trend is significantly different from zero
%(Null-hypothesis: a random process with the same power spectrum as data).

x=(1:100)';
data=smooth(randn(size(x)),15);
pdata=polyfit(x,data,1)
f=fft(data);
psur=nan(length(pdata),10000);
for ii=1:size(psur,2)
psur(:,ii)=polyfit(x,fftnoise(f),1)';
end
ptile=prctile(psur(1,:)',[2.5 97.5])
if (pdata(1)>ptile(2))|(pdata(1)<ptile(1))
disp('significant trend')
else
disp('not significant trend')
end

인용 양식

Aslak Grinsted (2024). fftnoise - generate noise with a specified power spectrum (https://www.mathworks.com/matlabcentral/fileexchange/32111-fftnoise-generate-noise-with-a-specified-power-spectrum), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R12
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Networks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0