You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scaling can be changed with the logical argument `corrected`. If `corrected` is `.false.`, then the sum is scaled with `n`, otherwise with `n-1`.
24
24
@@ -31,9 +31,9 @@ The scaling can be changed with the logical argument `corrected`. If `corrected`
31
31
32
32
`array`: Shall be a rank-1 or a rank-2 array of type `integer`, `real`, or `complex`.
33
33
34
-
`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`.
34
+
`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`.
35
35
36
-
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
36
+
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
37
37
38
38
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`.
39
39
@@ -78,16 +78,16 @@ Returns the mean of all the elements of `array`, or of the elements of `array` a
78
78
79
79
`array`: Shall be an array of type `integer`, `real`, or `complex`.
80
80
81
-
`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`.
81
+
`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`.
82
82
83
-
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
83
+
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
84
84
85
85
### Return value
86
86
87
87
If `array` is of type `real` or `complex`, the result is of the same type as `array`.
88
88
If `array` is of type `integer`, the result is of type `real(dp)`.
89
89
90
-
If `dim` is absent, a scalar with the mean of all elements in `array` is returned. Otherwise, an array of rank n-1, where n equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
90
+
If `dim` is absent, a scalar with the mean of all elements in `array` is returned. Otherwise, an array of rank `n-1`, where `n` equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
91
91
92
92
If `mask` is specified, the result is the mean of all elements of `array` corresponding to `true` elements of `mask`. If every element of `mask` is `false`, the result is IEEE `NaN`.
93
93
@@ -121,7 +121,7 @@ The _k_-th order central moment is defined as :
The _k_-th order moment about `center` is defined as :
127
127
@@ -141,18 +141,18 @@ The _k_-th order moment about `center` is defined as :
141
141
142
142
`order`: Shall be an scalar of type `integer`.
143
143
144
-
`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`.
144
+
`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`.
145
145
146
146
`center` (optional): Shall be a scalar of the same type of `result` if `dim` is not provided. If `dim` is provided, `center` shall be a scalar or an array (with a shape similar to that of `array` with dimension `dim` dropped) of the same type of `result`.
147
147
148
-
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
148
+
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
149
149
150
150
### Return value
151
151
152
152
If `array` is of type `real` or `complex`, the result is of the same type as `array`.
153
153
If `array` is of type `integer`, the result is of type `real(dp)`.
154
154
155
-
If `dim` is absent, a scalar with the _k_-th (central) moment of all elements in `array` is returned. Otherwise, an array of rank n-1, where n equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
155
+
If `dim` is absent, a scalar with the _k_-th (central) moment of all elements in `array` is returned. Otherwise, an array of rank `n-1`, where `n` equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
156
156
157
157
If `mask` is specified, the result is the _k_-th (central) moment of all elements of `array` corresponding to `true` elements of `mask`. If every element of `mask` is `false`, the result is IEEE `NaN`.
158
158
@@ -185,7 +185,7 @@ Per default, the variance is defined as the best unbiased estimator and is compu
The use of the term `n-1` for scaling is called Bessel 's correction. The scaling can be changed with the logical argument `corrected`. If `corrected` is `.false.`, then the sum is scaled with `n`, otherwise with `n-1`.
191
191
@@ -200,9 +200,9 @@ The use of the term `n-1` for scaling is called Bessel 's correction. The scalin
200
200
201
201
`array`: Shall be an array of type `integer`, `real`, or `complex`.
202
202
203
-
`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`.
203
+
`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`.
204
204
205
-
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
205
+
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
206
206
207
207
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`.
208
208
@@ -211,7 +211,7 @@ The use of the term `n-1` for scaling is called Bessel 's correction. The scalin
211
211
If `array` is of type `real` or `complex`, the result is of type `real` corresponding to the type of `array`.
212
212
If `array` is of type `integer`, the result is of type `real(dp)`.
213
213
214
-
If `dim` is absent, a scalar with the variance of all elements in `array` is returned. Otherwise, an array of rank n-1, where n equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
214
+
If `dim` is absent, a scalar with the variance of all elements in `array` is returned. Otherwise, an array of rank `n-1`, where `n` equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
215
215
216
216
If `mask` is specified, the result is the variance of all elements of `array` corresponding to `true` elements of `mask`. If every element of `mask` is `false`, the result is IEEE `NaN`.
0 commit comments