think-bayes
Version:
An algorithm framework of probability and statistics for browser and Node.js environment.
23 lines (12 loc) • 394 B
Markdown
# Interpolater(xs, ys)
Represents a mapping between sorted sequences; performs linear interp.
**@Params:**
| param | type | description |
|-------|-------|-------------|
| xs | array | sorted list |
| ys | array | sorted list |
**@Methods:**
## .lookup(x)
Looks up x and returns the corresponding value of y.
## .reverse(x)
Looks up y and returns the corresponding value of x.