
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
ndarray-function-basis
Advanced tools
Construct an ndarray basis given a sequence of points and functions
This module extends the idea of a Vandermonde matrix to a sequence of arbitrary functions. It constructs a set of basis vectors that can be used in a least squares curve fit.
basis( x, functions [, dtype])
x: a vector of numbers for the independent variable at which the functions are evaluatedfunctions: an Array of functions that take a Number as input and return a Number as outputdtype (optional): the datatype of the output array, as listed in the ndarray documentation.For example, to construct a sinusoidal basis with period 2*pi and a constant offset,
var basis = require('ndarray-function-basis'),
ndarray = require('ndarray');
var x = ndarray([1,2,3,4]);
var f1 = function(x) { return 1; }
var f3 = Math.sin;
var f4 = Math.cos;
var y = basis(x, [f1, f2, f3]);
ndarray-householder-qr: Householder QR for least squares curve-fitting ndarray-vandermonde: Construct a Vandermonde (polynomial) basis
(c) 2015 Ricky Reusser. MIT License
FAQs
Construct an basis ndarray given a list of values and functions
The npm package ndarray-function-basis receives a total of 0 weekly downloads. As such, ndarray-function-basis popularity was classified as not popular.
We found that ndarray-function-basis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.