Skip to content

Commit c4d1391

Browse files
author
Jim-215-Fisher
committed
some modification
1 parent 314492d commit c4d1391

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

doc/specs/stdlib_stats_distribution_normal.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ program demo_normal_rvs
6464
! 0.563655198
6565
6666
print *, norm(1.0, 2.0)
67-
!normal random variate miu=1.0, sigma=2.0
67+
!normal random variate mu=1.0, sigma=2.0
6868
6969
! -0.633261681
7070
@@ -86,8 +86,8 @@ program demo_normal_rvs
8686
loc = (-1.0, 2.0)
8787
scale = (2.0, 1.0)
8888
print *, norm(loc, scale)
89-
!single complex normal random variate with real part of miu=-1, sigma=2;
90-
!imagainary part of miu=2.0 and sigma=1.0
89+
!single complex normal random variate with real part of mu=-1, sigma=2;
90+
!imagainary part of mu=2.0 and sigma=1.0
9191
9292
! (1.22566295,2.12518454)
9393
@@ -149,7 +149,7 @@ program demo_normal_pdf
149149
! 0.241970733
150150
151151
print *, norm_pdf(2.0,-1.0, 2.0)
152-
!a probability density at 2.0 with miu=-1.0 sigma=2.0
152+
!a probability density at 2.0 with mu=-1.0 sigma=2.0
153153
154154
!6.47588000E-02
155155
@@ -170,7 +170,7 @@ program demo_normal_pdf
170170
scale = (1.0, 2.)
171171
print *, norm_pdf((1.5,1.0), loc, scale)
172172
! a complex normal probability density function at (1.5,1.0) with real part
173-
! of miu=1.0, sigma=1.0 and imaginary part of miu=-0.5, sigma=2.0
173+
! of mu=1.0, sigma=1.0 and imaginary part of mu=-0.5, sigma=2.0
174174
175175
! 5.30100204E-02
176176
@@ -232,7 +232,7 @@ program demo_norm_cdf
232232
! 0.841344714
233233
234234
print *, norm_cdf(2.0, -1.0, 2.0)
235-
! a cumulative at 2.0 with miu=-1 sigma=2
235+
! a cumulative at 2.0 with mu=-1 sigma=2
236236
237237
! 0.933192849
238238
@@ -253,7 +253,7 @@ program demo_norm_cdf
253253
scale = (0.5,1.0)
254254
print *, norm_cdf((0.5,-0.5),loc,scale)
255255
!complex normal cumulative distribution at (0.5,-0.5) with real part of
256-
!miu=1.0, sigma=0.5 and imaginary part of miu=0.0, sigma=1.0
256+
!mu=1.0, sigma=0.5 and imaginary part of mu=0.0, sigma=1.0
257257
258258
!4.89511043E-02
259259

src/stdlib_stats_distribution_normal.fypp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ module stdlib_stats_distribution_normal
1010
private
1111

1212
real(dp), parameter :: HALF = 0.5_dp, ONE = 1.0_dp, TWO = 2.0_dp
13-
integer, save :: kn(0:127)
14-
real(dp), save :: wn(0:127), fn(0:127)
15-
logical, save :: zig_norm_initialized = .false.
13+
integer :: kn(0:127)
14+
real(dp) :: wn(0:127), fn(0:127)
15+
logical :: zig_norm_initialized = .false.
1616

1717
public :: rvs_normal
1818
public :: pdf_normal
@@ -21,7 +21,7 @@ module stdlib_stats_distribution_normal
2121

2222

2323
interface rvs_normal
24-
!! Version experimental
24+
!! version: experimental
2525
!!
2626
!! Normal Distribution Random Variates
2727
!! ([Specification](../page/specs/stdlib_stats_distribution_normal.html#
@@ -41,7 +41,7 @@ module stdlib_stats_distribution_normal
4141

4242

4343
interface pdf_normal
44-
!! Version experimental
44+
!! version: experimental
4545
!!
4646
!! Normal Distribution Probability Density Function
4747
!! ([Specification](../page/specs/stdlib_stats_distribution_normal.html#
@@ -82,8 +82,6 @@ contains
8282
! This is an electronic journal which can be downloaded from:
8383
! http://www.jstatsoft.org/v05/i08
8484
!
85-
! N.B. It is assumed that all integers are 32-bit.
86-
!
8785
! Latest version - 1 January 2001
8886
!
8987
real(dp), parameter :: M1 = 2147483648.0_dp, vn = 0.00991256303526217_dp

0 commit comments

Comments
 (0)