Skip to content

Commit d77b6e9

Browse files
committed
variance_dev: update spec var
1 parent 044abc5 commit d77b6e9

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
@@ -69,15 +69,15 @@ The variance is defined as the best unbiased estimator and is computed as:
6969

7070
### Arguments
7171

72-
`array`: Shall be an array of type `integer`, or `real`.
72+
`array`: Shall be an array of type `integer`, `real`, or `complex`.
7373

7474
`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`.
7575

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

7878
### Return value
7979

80-
If `array` is of type `real`, the result is of the same type as `array`.
80+
If `array` is of type `real` or `complex`, the result is of the same type as `array`.
8181
If `array` is of type `integer`, the result is of type `double precision`.
8282

8383
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 `ar

0 commit comments

Comments
 (0)