Skip to content

Commit 1c46c10

Browse files
author
Jim-215-Fisher
committed
Spell checked and minor correction
1 parent 6379458 commit 1c46c10

File tree

3 files changed

+127
-111
lines changed

3 files changed

+127
-111
lines changed

doc/specs/stdlib_stats_distribution_uniform.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,17 @@ Experimental
7575

7676
### Description
7777

78-
Without augument the function returns a scalar standard uniformly distributed variate U(0,1) of `real` type with single precision on [0,1].
78+
Without argument the function returns a scalar standard uniformly distributed variate U(0,1) of `real` type with single precision on [0,1].
7979

80-
With single augument `scale` of `integer` type the function returns a scalar uniformly distributed variate of `integer` type on [0,scale]. This is the standard Rectangular distribution.
80+
With single argument `scale` of `integer` type the function returns a scalar uniformly distributed variate of `integer` type on [0,scale]. This is the standard Rectangular distribution.
8181

82-
With single augument `scale` of `real` or `complex` type the function returns a scalar uniformly distributed variate of `real` or `complex` type on [0, scale]. The real part and imaginary part of a `complex` type are independent of each other.
82+
With single argument `scale` of `real` or `complex` type the function returns a scalar uniformly distributed variate of `real` or `complex` type on [0, scale].
8383

84-
With double auguments `loc` and `scale` the function returns a scalar uniformly distributed random variates of `integer`, `real` or `complex` type on [loc, loc + scale] dependent of input type. If it is `complex` augument, the real part and imaginary part are independent of each other.
84+
With double arguments `loc` and `scale` the function returns a scalar uniformly distributed random variates of `integer`, `real` or `complex` type on [loc, loc + scale] dependent of input type.
8585

86-
With triple auguments `loc`, `scale` and `array_size` the function returns a rank one array of uniformly distributed variates of `integer`, `real` or `complex` type with an array size of `array_size`.
86+
With triple arguments `loc`, `scale` and `array_size` the function returns a rank one array of uniformly distributed variates of `integer`, `real` or `complex` type with an array size of `array_size`.
87+
88+
For `complex` type, the real part and imaginary part are independent of each other.
8789

8890
### Syntax
8991

@@ -223,11 +225,11 @@ Elemental function.
223225

224226
`scale`: has `intent(in)` and is a scalar of type `integer`, `real` or `complex`.
225227

226-
All three auguments could be arrays conformable to each other. All three arguments must have the same type and kind.
228+
All three arguments must have the same type and kind.
227229

228230
### Return value
229231

230-
The result is a scalar or an array, with a shape conformable to auguments, of type `real`.
232+
The result is a scalar or an array, with a shape conformable to arguments, of type `real`.
231233

232234
### Example
233235

@@ -317,11 +319,11 @@ Elemental function.
317319

318320
`scale`: has `intent(in)` and is a scalar of type `integer`, `real` or `complex`.
319321

320-
All three auguments could be arrays conformable to each other. All three arguments must have the same type and kind.
322+
All three arguments must have the same type and kind.
321323

322324
### Return value
323325

324-
The result is a scalar or an array, with a shape conformable to auguments, of type `real`.
326+
The result is a scalar or an array, with a shape conformable to arguments, of type `real`.
325327

326328
### Example
327329

src/stdlib_stats_distribution_uniform.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ contains
368368
${t1}$, intent(in) :: x, loc, scale
369369
real :: res
370370

371-
if(scale == 0) then
371+
if(scale == 0_${k1}$) then
372372
res = 0.0
373373
elseif(x < loc .or. x > (loc + scale)) then
374374
res = 0.0
@@ -428,7 +428,7 @@ contains
428428
${t1}$, intent(in) :: x, loc, scale
429429
real :: res
430430

431-
if(scale == 0) then
431+
if(scale == 0_${k1}$) then
432432
res = 0.0
433433
elseif(x < loc) then
434434
res = 0.0

0 commit comments

Comments
 (0)