Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate stats/base/dnanmeanors to stats/strided/dnanmeanors #5441

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The [arithmetic mean][arithmetic-mean] is defined as
## Usage

```javascript
var dnanmeanors = require( '@stdlib/stats/base/dnanmeanors' );
var dnanmeanors = require( '@stdlib/stats/strided/dnanmeanors' );
```

#### dnanmeanors( N, x, strideX )
Expand Down Expand Up @@ -153,7 +153,7 @@ var v = dnanmeanors.ndarray( 5, x, 2, 1 );
var randu = require( '@stdlib/random/base/randu' );
var round = require( '@stdlib/math/base/special/round' );
var Float64Array = require( '@stdlib/array/float64' );
var dnanmeanors = require( '@stdlib/stats/base/dnanmeanors' );
var dnanmeanors = require( '@stdlib/stats/strided/dnanmeanors' );

var x;
var i;
Expand Down Expand Up @@ -199,7 +199,7 @@ console.log( v );
### Usage

```c
#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
```

#### stdlib_strided_dnanmeanors( N, \*X, strideX )
Expand Down Expand Up @@ -264,7 +264,7 @@ double stdlib_strided_dnanmeanors_ndarray( const CBLAS_INT N, const double *X, c
### Examples

```c
#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
#include <stdio.h>

int main( void ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
#include <stdio.h>

int main( void ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#ifndef STDLIB_STATS_BASE_DNANMEANORS_H
#define STDLIB_STATS_BASE_DNANMEANORS_H
#ifndef STDLIB_STATS_STRIDED_DNANMEANORS_H
#define STDLIB_STATS_STRIDED_DNANMEANORS_H

#include "stdlib/blas/base/shared.h"

Expand All @@ -42,4 +42,4 @@ double API_SUFFIX(stdlib_strided_dnanmeanors_ndarray)( const CBLAS_INT N, const
}
#endif

#endif // !STDLIB_STATS_BASE_DNANMEANORS_H
#endif // !STDLIB_STATS_STRIDED_DNANMEANORS_H
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
/**
* Compute the arithmetic mean of a double-precision floating-point strided array, ignoring `NaN` values and using ordinary recursive summation.
*
* @module @stdlib/stats/base/dnanmeanors
* @module @stdlib/stats/strided/dnanmeanors
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
* var dnanmeanors = require( '@stdlib/stats/base/dnanmeanors' );
* var dnanmeanors = require( '@stdlib/stats/strided/dnanmeanors' );
*
* var x = new Float64Array( [ 1.0, -2.0, NaN, 2.0 ] );
*
Expand All @@ -34,7 +34,7 @@
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
* var dnanmeanors = require( '@stdlib/stats/base/dnanmeanors' );
* var dnanmeanors = require( '@stdlib/stats/strided/dnanmeanors' );
*
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@stdlib/stats/base/dnanmeanors",
"name": "@stdlib/stats/strided/dnanmeanors",
"version": "0.0.0",
"description": "Calculate the arithmetic mean of a double-precision floating-point strided array, ignoring NaN values and using ordinary recursive summation.",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
#include "stdlib/napi/export.h"
#include "stdlib/napi/argv.h"
#include "stdlib/napi/argv_int64.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

#include "stdlib/stats/base/dnanmeanors.h"
#include "stdlib/stats/strided/dnanmeanors.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/strided/base/stride2offset.h"

Expand Down
Loading