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
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/base/ndarray/dvariancetk/README.md
+170Lines changed: 170 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,176 @@ console.log( v );
168
168
169
169
<!-- /.examples -->
170
170
171
+
<!-- C interface documentation. -->
172
+
173
+
* * *
174
+
175
+
<sectionclass="c">
176
+
177
+
## C APIs
178
+
179
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
180
+
181
+
<sectionclass="intro">
182
+
183
+
</section>
184
+
185
+
<!-- /.intro -->
186
+
187
+
<!-- C usage documentation. -->
188
+
189
+
<sectionclass="usage">
190
+
191
+
### Usage
192
+
193
+
```c
194
+
#include"stdlib/stats/base/ndarray/dvariancetk.h"
195
+
```
196
+
197
+
#### stdlib_stats_dvariancetk( arrays )
198
+
199
+
Computes the variance of a one-dimensional double-precision floating-point ndarray using a one-pass textbook algorithm.
- **arrays**: `[in] struct ndarray**` list containing the following ndarrays:
235
+
236
+
- `[in] struct ndarray*` a one-dimensional input ndarray.
237
+
- `[in] struct ndarray*` a zero-dimensional ndarray specifying the degrees of freedom adjustment. Providing a non-zero degrees of freedom adjustment has the effect of adjusting the divisor during the calculation of the [variance][variance] according to `N-c` where `N` is the number of elements in the input ndarray and `c` corresponds to the provided degrees of freedom adjustment. When computing the [variance][variance] of a population, setting this parameter to `0` is the standard choice (i.e., the provided array contains data constituting an entire population). When computing the corrected sample [variance][variance], setting this parameter to `1` is the standard choice (i.e., the provided array contains data sampled from a larger population; this is commonly referred to as Bessel's correction).
0 commit comments