Registry / utility / linefit

linefit

JSON →
library0.3.4rbrubygemsunverified

LineFit does weighted or unweighted least-squares line fitting to two-dimensional data (y = a + b * x). (Linear Regression)

gem install linefit
INSTALL
IMPORT
SIG · LINEFIT
L
linefit
utilityrubyv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LineFit
require 'linefit'

Fit a line to data points and get coefficients.

require 'linefit' line_fit = LineFit.new line_fit.setData([1,2,3], [2,4,6]) intercept, slope = line_fit.coefficients
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
linefit — gem install linefit · libregistry