diff --git a/lib/node_modules/@stdlib/ml/incr/kmeans/lib/normalize.js b/lib/node_modules/@stdlib/ml/incr/kmeans/lib/normalize.js index 492aeb665948..1820c921bbeb 100644 --- a/lib/node_modules/@stdlib/ml/incr/kmeans/lib/normalize.js +++ b/lib/node_modules/@stdlib/ml/incr/kmeans/lib/normalize.js @@ -28,6 +28,14 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); /** * Normalizes a vector. * +* ## Notes +* +* - This is a temporary implementation. This function should eventually be +* replaced once the project has implemented comparable functionality as a +* standalone package (e.g., BLAS), which may avoid the naive approach +* susceptible to overflow/underflow due to summing squares and computing +* the square root. +* * @private * @param {NonNegativeInteger} N - number of elements * @param {NumericArray} X - strided array @@ -35,7 +43,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); * @param {NonNegativeInteger} offsetX - index offset * @returns {NumericArray} input array */ -function normalize( N, X, strideX, offsetX ) { // TODO: eventually remove this function once project has implemented comparable functionality as a standalone package (e.g., BLAS, which may avoid the naive approach susceptible to overflow/overflow due to summing squares and computing the square root) +function normalize( N, X, strideX, offsetX ) { var xi; var m; var v;