Skip to content

Commit fe7b90a

Browse files
committed
2 parents 537d3eb + 00ff1aa commit fe7b90a

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ library("Sim.DiffProc")
5757
Documentation and Examples
5858
--------------------------
5959

60-
It is a requirement of the R packaging system that every function and data set in a package has a help page. The [Sim.DiffProc](https://cran.r-project.org/package=Sim.DiffProc) package follows this requirement strictly. In addition to the help pages, the package includes vignettes and demonstration scripts. First read the package vignette Then read the [reference manual.](https://CRAN.R-project.org/package=Sim.DiffProc/Sim.DiffProc.pdf)
60+
It is a requirement of the R packaging system that every function and data set in a package has a help page. The [Sim.DiffProc](https://doi.org/10.18637/jss.v096.i02) package follows this requirement strictly. In addition to the help pages, the package includes vignettes and demonstration scripts. First read the package vignette Then read the [reference manual.](https://CRAN.R-project.org/package=Sim.DiffProc/Sim.DiffProc.pdf)
6161

6262

6363

@@ -105,4 +105,4 @@ Please send comments, error reports, etc. to the author via the addresses email.
105105
References
106106
----------
107107

108-
1. Guidoum AC, Boukhetala K (2020). "Performing Parallel Monte Carlo and Moment Equations Methods for Itô and Stratonovich Stochastic Differential Systems: R Package Sim.DiffProc". Journal of Statistical Software, 96(2), 1--82. doi:10.18637/jss.v096.i02
108+
1. Guidoum AC, Boukhetala K (2020). "Performing Parallel Monte Carlo and Moment Equations Methods for Itô and Stratonovich Stochastic Differential Systems: R Package Sim.DiffProc". Journal of Statistical Software, 96(2), 1--82. https://doi.org/10.18637/jss.v096.i02

tests/bridgesde_test.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ points2d(mod2,pch=19,cex=0.1)
8484

8585
Sigma <- matrix(c(1, 0.75, 0.75, 1), nrow = 2, ncol = 2)
8686
mod2 <- bridgesde2d(drift=fx,diffusion=gx,corr=Sigma,Dt=0.005,M=10,N=50)
87+
print(mod2)
88+
summary(mod2)
8789

8890
##
8991

@@ -112,6 +114,8 @@ bconfint(mod2, at =s)
112114

113115
Sigma <- matrix(c(1, 0.75, 0.75, 1), nrow = 2, ncol = 2)
114116
mod2 <- bridgesde2d(drift=fx,diffusion=gx,corr=Sigma,Dt=0.005,M=10,N=50,type="str")
117+
print(mod2)
118+
summary(mod2)
115119

116120
######## 3d
117121

@@ -140,6 +144,8 @@ plot3D(mod3,display="persp",main="3-dim bridge sde")
140144

141145
Sigma <- matrix(c(1,-0.5,-0.25,-0.5,1,0.95,-0.25,0.95,1),nrow=3,ncol=3)
142146
mod3 <- bridgesde3d(drift=fx,diffusion=gx,corr=Sigma,x0=c(0,-1,0.5),y=c(0,-2,0.5),M=10,Dt=0.01,N=50)
147+
print(mod3)
148+
summary(mod3)
143149

144150
##
145151

@@ -168,7 +174,8 @@ bconfint(mod3, at =s)
168174

169175
Sigma <- matrix(c(1,-0.5,-0.25,-0.5,1,0.95,-0.25,0.95,1),nrow=3,ncol=3)
170176
mod3 <- bridgesde3d(drift=fx,diffusion=gx,corr=Sigma,x0=c(0,-1,0.5),y=c(0,-2,0.5),M=10,Dt=0.01,N=50,type="str")
171-
177+
print(mod3)
178+
summary(mod3)
172179

173180
#############################
174181

tests/snssde_test.R

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ points2d(mod2[[1]],pch=19,cex=0.1)
9191
Sigma <- matrix(c(1, 0.75, 0.75, 1), nrow = 2, ncol = 2)
9292
mod2 <- lapply(1:2, function(i)
9393
snssde2d(N=50,drift=fx,diffusion=gx,corr=Sigma,Dt=0.005,M=2,method=meth[i]))
94-
94+
print(mod2[[1]])
95+
summary(mod2[[1]])
9596
##
9697

9798
mod2 <- lapply(2:length(meth), function(i)
@@ -121,7 +122,9 @@ bconfint(mod2[[1]], at =s)
121122
Sigma <- matrix(c(1, 0.75, 0.75, 1), nrow = 2, ncol = 2)
122123
mod2 <- lapply(1:2, function(i)
123124
snssde2d(N=50,drift=fx,diffusion=gx,corr=Sigma,Dt=0.005,M=2,method=meth[i],type="str"))
124-
125+
print(mod2[[1]])
126+
summary(mod2[[1]])
127+
125128
######## 3d
126129

127130
fx <- expression(4*(-1-x)*y, 4*(1-y)*x, 4*(1-z)*y)
@@ -151,6 +154,9 @@ plot3D(mod3[[1]],display="persp",main="3-dim bridge sde")
151154
Sigma <- matrix(c(1,-0.5,-0.25,-0.5,1,0.95,-0.25,0.95,1),nrow=3,ncol=3)
152155
mod3 <- lapply(1:2, function(i)
153156
snssde3d(N=50,drift=fx,diffusion=gx,corr=Sigma,M=2,method=meth[i]))
157+
print(mod3[[1]])
158+
summary(mod3[[1]])
159+
154160
##
155161

156162

@@ -180,7 +186,8 @@ bconfint(mod3[[1]], at =s)
180186
Sigma <- matrix(c(1,-0.5,-0.25,-0.5,1,0.95,-0.25,0.95,1),nrow=3,ncol=3)
181187
mod3 <- lapply(1:2, function(i)
182188
snssde3d(N=50,drift=fx,diffusion=gx,corr=Sigma,M=2,method=meth[i],type="str"))
183-
189+
print(mod3[[1]])
190+
summary(mod3[[1]])
184191
#############################
185192
s= 0.00458
186193
f <- expression( 2*(1-x) )

0 commit comments

Comments
 (0)