Skip to content

Commit df4fedb

Browse files
committed
moment_dev: addition of TOCs
1 parent 20a76b8 commit df4fedb

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

src/stdlib_experimental_stats.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# Descriptive statistics
22

3-
## Implemented
43

5-
* `mean`
6-
* `moment`
7-
* `var`
4+
## Implemented
5+
<!-- vim-markdown-toc GFM -->
6+
7+
* [`mean` - mean of array elements](#mean---mean-of-array-elements)
8+
* [Description](#description)
9+
* [Syntax](#syntax)
10+
* [Arguments](#arguments)
11+
* [Return value](#return-value)
12+
* [Example](#example)
13+
* [`moment` - central moment of array elements](#moment---central-moment-of-array-elements)
14+
* [Description](#description-1)
15+
* [Syntax](#syntax-1)
16+
* [Arguments](#arguments-1)
17+
* [Return value](#return-value-1)
18+
* [Example](#example-1)
19+
* [`var` - variance of array elements](#var---variance-of-array-elements)
20+
* [Description](#description-2)
21+
* [Syntax](#syntax-2)
22+
* [Arguments](#arguments-2)
23+
* [Return value](#return-value-2)
24+
* [Example](#example-2)
25+
26+
<!-- vim-markdown-toc -->
827

928
## `mean` - mean of array elements
1029

@@ -100,7 +119,7 @@ program demo_moment
100119
print *, moment( reshape(x, [ 2, 3 ] ), 2) !returns 2.9167
101120
print *, moment( reshape(x, [ 2, 3 ] ), 2, 1) !returns [0.25, 0.25, 0.25]
102121
print *, moment( reshape(x, [ 2, 3 ] ), 2, 1,&
103-
reshape(x, [ 2, 3 ] ) > 3.) !returns [NaN, 0.0, 0.25]
122+
reshape(x, [ 2, 3 ] ) > 3.) !returns [NaN, 0., 0.25]
104123
end program demo_moment
105124
```
106125

0 commit comments

Comments
 (0)