Code covered by the BSD License  

Highlights from
Detrended Fluctuation Analysis

3.4

3.4 | 8 ratings Rate this file 44 Downloads (last 30 days) File Size: 506.14 KB File ID: #19795

Detrended Fluctuation Analysis

by Guan Wenye

 

02 May 2008 (Updated 26 Nov 2011)

Detrended Fluctuation Analysis,fractal analysis

| Watch this File

File Information
Description

it is consitent with the program provided by Oxford Univ
www.eng.ox.ac.uk/samp/dfa_soft.html
Interest readers can visit that page
and download a complied DFA program that runs much faster.

In stochastic processes, chaos theory and time series analysis, detrended fluctuation analysis (DFA) is a method for determining the statistical self-affinity of a signal. It is useful for analysing time series that appear to be long-memory processes.
Reference: Peng C-K, Havlin S, Stanley HE, Goldberger AL. Quantification of scaling exponents and crossover phenomena in nonstationary heartbeat time series. Chaos 1995;5:82-87.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (16)
13 Jul 2008 Srav U

this may be a stupid question...but why do you need a minimum of 2000 data points?

14 Jul 2008 Guan Wenye

For fewer points, you may get incorrect result :).

10 Nov 2008 mehak gandhi

is the program supposed to run slow

01 May 2009 Guan Wenye

to mehak gandhi :it would definitely runs faster if you code it in C or Fortran

27 May 2009 meysam abed

dear Guan have you checked your DFA code with the code in Physionet.org and it's sample data with results???

05 Jun 2009 Guan Wenye

hi meysam abed
it is consitent with the program provided by oxford univ
www.eng.ox.ac.uk/samp/dfa_soft.html
i have checked with it

15 Jul 2009 Andy Daubenspeck

The file dfm.m seems to be truncated at 26 lines leaving the for-loop unfinished.

23 Nov 2009 Jefferson Willes

Dear Guan, the function output "function output1 = DFA (DATA, win_length, order)" with which data have to enter: DATE, win_length, order??

25 Jan 2010 Erika Rodriguez

Dear Guan;
I should use the same size of n (n<=10,000) if I am comparing the DFA values in different types of lesions in spinal cord.
thanks
Erika

30 Jan 2010 Guan Wenye

To Erika Rodriguez :
you can use time series of different lengths if the length is long enough to have statistical value.

02 Feb 2010 Erika Rodriguez

Dear Guan Wenye;
Thanks for you answer. I do have time series of diferent lengths. However, I find cross-overs. I am not sure whether I should take just one cross-over, the one that has the best fit for all the experiments. In other words, I am taking just boxes size up to 200ms. thanks Erika

02 Feb 2010 Erika Rodriguez  
03 Feb 2010 Erika Rodriguez

Dear Guan Weye;
There is sample frequency that works better with DFA?

16 Feb 2011 Sarath Babu Krishna Murthy

Dear Guan,

Please let me know if I can have the input as row vector? I am having time series of different length and when I run, I am getting values more than 1.Do I need to change the value of n accordingly?

06 Apr 2011 dayananda sagar

Dear Guan
i have a signal of 700 points,what necessary changes should i make in the program..pls reply soon..

06 Sep 2011 wang hongwu

Dear Guan
do you have the MF_DFA code?

Please login to add a comment or rating.
Updates
26 Nov 2011

add some description

Tag Activity for this File
Tag Applied By Date/Time
fractals Guan Wenye 22 Oct 2008 09:59:54
detrended fluctuation analysis Guan Wenye 22 Oct 2008 09:59:54
dfa Guan Wenye 22 Oct 2008 09:59:54
chaos Guan Wenye 22 Oct 2008 09:59:54
fractal Guan Wenye 22 Oct 2008 09:59:54
selfaffinity Guan Wenye 22 Oct 2008 09:59:54
detrended fluctuation analysis Oskar Vivero 08 Apr 2009 12:16:13
dear guan Jefferson Willes 23 Nov 2009 20:34:47
win_length Jefferson Willes 23 Nov 2009 20:34:48
the function output function output1 dfa data Jefferson Willes 23 Nov 2009 20:34:48
order with which data have to enter date Jefferson Willes 23 Nov 2009 20:34:48
order Jefferson Willes 23 Nov 2009 20:34:48

Contact us at files@mathworks.com