Skip to content

Commit 88379b4

Browse files
authored
Update README.md
1 parent 0f70b05 commit 88379b4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,36 @@ devtools::install_github("mlaib/MFDFA")
2323

2424
library(MFDFA)
2525

26+
## Example #####
27+
28+
a<-0.9
29+
30+
N<-1024
31+
32+
tsx<-MFsim(N,a)
33+
34+
scale=10:100
35+
36+
q<--10:10
37+
38+
m<-1
39+
40+
mfdfa<-MFDFA(tsx, scale, m, q)
41+
42+
43+
## Results plot ####
44+
45+
dev.new()
46+
47+
par(mai=rep(1, 4))
48+
49+
plot(q, mfdfa$Hq, col=1, axes= F, ylab=expression('h'[q]), pch=16, cex.lab=1.8,
50+
cex.axis=1.8, main="Hurst exponent",
51+
ylim=c(min(mfdfa$Hq),max(mfdfa$Hq)))
52+
53+
grid(col="midnightblue")
54+
55+
axis(1)
56+
57+
axis(2)
58+

0 commit comments

Comments
 (0)