Skip to content

Commit 7f2beea

Browse files
authored
chore: reset function description to original place
1 parent cc9d9a1 commit 7f2beea

File tree

1 file changed

+14
-14
lines changed
  • lib/node_modules/@stdlib/stats/base/dvariancewd/src

1 file changed

+14
-14
lines changed

lib/node_modules/@stdlib/stats/base/dvariancewd/src/main.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@
2323
/**
2424
* Computes the variance of a double-precision floating-point strided array using Welford's algorithm.
2525
*
26-
* @param N number of indexed elements
27-
* @param correction degrees of freedom adjustment
28-
* @param X input array
29-
* @param strideX stride length
30-
* @return output value
31-
*/
32-
double API_SUFFIX(stdlib_strided_dvariancewd)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX ) {
33-
const CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
34-
return API_SUFFIX(stdlib_strided_dvariancewd_ndarray)( N, correction, X, strideX, ox );
35-
}
36-
37-
/**
38-
* Computes the variance of a double-precision floating-point strided array using Welford's algorithm and alternative indexing semantics.
39-
*
4026
* ## Method
4127
*
4228
* - This implementation uses Welford's algorithm for efficient computation, which can be derived as follows. Let
@@ -80,6 +66,20 @@ double API_SUFFIX(stdlib_strided_dvariancewd)( const CBLAS_INT N, const double c
8066
* @param correction degrees of freedom adjustment
8167
* @param X input array
8268
* @param strideX stride length
69+
* @return output value
70+
*/
71+
double API_SUFFIX(stdlib_strided_dvariancewd)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX ) {
72+
const CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
73+
return API_SUFFIX(stdlib_strided_dvariancewd_ndarray)( N, correction, X, strideX, ox );
74+
}
75+
76+
/**
77+
* Computes the variance of a double-precision floating-point strided array using Welford's algorithm and alternative indexing semantics.
78+
*
79+
* @param N number of indexed elements
80+
* @param correction degrees of freedom adjustment
81+
* @param X input array
82+
* @param strideX stride length
8383
* @param offsetX starting index for X
8484
* @return output value
8585
*/

0 commit comments

Comments
 (0)