Skip to content
Merged
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
7 changes: 7 additions & 0 deletions lib/node_modules/@stdlib/stats/lowess/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
* @throws {TypeError} second argument must be a numeric array
* @throws {RangeError} first and second arguments must have the same length
* @returns {Object} ordered x-values and fitted values
*
* @example
* var x = [ 4, 4, 7, 7, 8, 9, 10, 10, 10, 11 ];
* var y = [ 2, 10, 4, 22, 16, 10, 18, 26, 34, 17 ];
*
* var out = main( x, y );
* // returns {...}
*/
function main( x, y, options ) {
var nsteps;
Expand Down Expand Up @@ -100,7 +107,7 @@
for ( i = 0; i < n; i++ ) {
xy[ i ] = [ x[ i ], y[ i ] ];
}
xy.sort( ascending ); // TODO: Revisit once we have function for sorting multiple arrays by the elements of one of the arrays

Check warning on line 110 in lib/node_modules/@stdlib/stats/lowess/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: Revisit once we have function for...'
x = new Array( n ); // eslint-disable-line stdlib/no-new-array
y = new Array( n ); // eslint-disable-line stdlib/no-new-array
for ( i = 0; i < n; i++ ) {
Expand Down
Loading