Registry / utility / interpolate

interpolate

JSON →
library0.3.0rbrubygemsunverified

Interpolate is a library for generic linear interpolation objects, useful for calculating linear motion, multi-channel color gradients, piecewise functions, or placing values within intervals.

gem install interpolate
INSTALL
IMPORT
SIG · INTERPOLATE
I
interpolate
utilityrubyv0.3.0
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.

Interpolate
require 'interpolate'

Linear interpolation between two points

require 'interpolate' points = {0 => 0, 10 => 100} interp = Interpolate::Points.new(points) puts interp.at(5) # => 50.0
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
interpolate — gem install interpolate · libregistry