Skip to content

Commit 155ddc2

Browse files
committed
rawmoment: update spec
1 parent a365ea0 commit 155ddc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_experimental_stats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Returns the mean of all the elements of `array`, or of the elements of `array` a
1919
### Arguments
2020

2121
`array`: Shall be an array of type `integer`, `real`, or `complex`.
22-
[, center [,
22+
2323
`dim`: Shall be a scalar of type `integer` with a value in the range from 1 to n, where n is the rank of `array`.
2424

2525
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
@@ -85,7 +85,7 @@ The _k_-th order central moment is defined as :
8585

8686
`dim`: Shall be a scalar of type `integer` with a value in the range from 1 to n, where n is the rank of `array`.
8787

88-
`center` (optional): Shall be a scalar or an array of the same type of `array`, if `array` is `real` or `complex`, or a scalar or an array of type `real(dp)` if `array` is of type `integer`.
88+
`center` (optional): Shall be a scalar of the same type of `array` if `array` is `real` or `complex`, or of type `real(dp)` if `array` is of type `integer`. If `dim` is provided, `center` shall be an array (with a shape similar to that of `array` with dimension `dim` dropped) of the same type of `array` if `array` is `real` or `complex`, or of type `real(dp)` if `array` is of type `integer`.
8989

9090
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
9191

0 commit comments

Comments
 (0)