Skip to content

Commit e0e12eb

Browse files
committed
remove: remove mean from namespace
This commit removes the `mean` symbol from the `@stdlib/stats/base` namespace due to a package migration. BREAKING CHANGE: remove `mean` To migrate, users should access the same symbol via the `@stdlib/stats/strided` namespace. Ref: #4797 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent d8ffccd commit e0e12eb

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

lib/node_modules/@stdlib/stats/base/docs/types/index.d.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import dmeanvar = require( '@stdlib/stats/base/dmeanvar' );
3131
import dmeanvarpn = require( '@stdlib/stats/base/dmeanvarpn' );
3232
import dvarm = require( '@stdlib/stats/base/dvarm' );
3333
import dvarmpn = require( '@stdlib/stats/base/dvarmpn' );
34-
import mean = require( '@stdlib/stats/base/mean' );
3534
import meankbn = require( '@stdlib/stats/base/meankbn' );
3635
import meankbn2 = require( '@stdlib/stats/base/meankbn2' );
3736
import meanors = require( '@stdlib/stats/base/meanors' );
@@ -411,28 +410,6 @@ interface Namespace {
411410
*/
412411
dvarmpn: typeof dvarmpn;
413412

414-
/**
415-
* Computes the arithmetic mean of a strided array.
416-
*
417-
* @param N - number of indexed elements
418-
* @param x - input array
419-
* @param stride - stride length
420-
* @returns arithmetic mean
421-
*
422-
* @example
423-
* var x = [ 1.0, -2.0, 2.0 ];
424-
*
425-
* var v = ns.mean( x.length, x, 1 );
426-
* // returns ~0.3333
427-
*
428-
* @example
429-
* var x = [ 1.0, -2.0, 2.0 ];
430-
*
431-
* var v = ns.mean.ndarray( x.length, x, 1, 0 );
432-
* // returns ~0.3333
433-
*/
434-
mean: typeof mean;
435-
436413
/**
437414
* Computes the arithmetic mean of a strided array using an improved Kahan–Babuška algorithm.
438415
*

lib/node_modules/@stdlib/stats/base/lib/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,6 @@ setReadOnly( ns, 'dvarm', require( '@stdlib/stats/base/dvarm' ) );
135135
*/
136136
setReadOnly( ns, 'dvarmpn', require( '@stdlib/stats/base/dvarmpn' ) );
137137

138-
/**
139-
* @name mean
140-
* @memberof ns
141-
* @readonly
142-
* @type {Function}
143-
* @see {@link module:@stdlib/stats/base/mean}
144-
*/
145-
setReadOnly( ns, 'mean', require( '@stdlib/stats/base/mean' ) );
146-
147138
/**
148139
* @name meankbn
149140
* @memberof ns

0 commit comments

Comments
 (0)