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/strided/dvarm/README.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ The use of the term `n-1` is commonly referred to as Bessel's correction. Note,
98
98
var dvarm =require( '@stdlib/stats/strided/dvarm' );
99
99
```
100
100
101
-
#### dvarm( N, mean, correction, x, strideX )
101
+
#### dvarm( N, correction, mean, x, strideX )
102
102
103
103
Computes the [variance][variance] of a double-precision floating-point strided array provided a known `mean`.
104
104
@@ -107,15 +107,15 @@ var Float64Array = require( '@stdlib/array/float64' );
107
107
108
108
var x =newFloat64Array( [ 1.0, -2.0, 2.0 ] );
109
109
110
-
var v =dvarm( x.length, 1.0/3.0, 1, x, 1 );
110
+
var v =dvarm( x.length, 1, 1.0/3.0, x, 1 );
111
111
// returns ~4.3333
112
112
```
113
113
114
114
The function has the following parameters:
115
115
116
116
-**N**: number of indexed elements.
117
-
-**mean**: mean.
118
117
-**correction**: degrees of freedom adjustment. Setting this parameter to a value other than `0` has the effect of adjusting the divisor during the calculation of the [variance][variance] according to `N-c` where `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 unbiased 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).
double v = stdlib_strided_dvarm( 4, 1.25, 1.0, x, 2 );
246
+
double v = stdlib_strided_dvarm( 4, 1.0, 1.25, x, 2 );
247
247
// returns 6.25
248
248
```
249
249
250
250
The function accepts the following arguments:
251
251
252
252
- **N**: `[in] CBLAS_INT` number of indexed elements.
253
-
- **mean**: `[in] double` mean.
254
253
- **correction**: `[in] double` degrees of freedom adjustment. Setting this parameter to a value other than `0` has the effect of adjusting the divisor during the calculation of the [variance][variance] according to `N-c` where `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 unbiased 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).
254
+
- **mean**: `[in] double` mean.
255
255
- **X**: `[in] double*` input array.
256
256
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
- **N**: `[in] CBLAS_INT` number of indexed elements.
276
-
- **mean**: `[in] double` mean.
277
276
- **correction**: `[in] double` degrees of freedom adjustment. Setting this parameter to a value other than `0` has the effect of adjusting the divisor during the calculation of the [variance][variance] according to `N-c` where `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 unbiased 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).
277
+
- **mean**: `[in] double` mean.
278
278
- **X**: `[in] double*` input array.
279
279
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
280
280
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
0 commit comments