Skip to content

grid-fit Documentation

Installation

Python

Install directly from GitHub:

python -m pip install git+https://github.com/rae-gh/grid-fit.git

R

Install directly from GitHub using devtools:

install.packages("devtools")
library(devtools)
install_url("https://github.com/rae-gh/grid-fit/archive/refs/heads/main.zip")

Usage Example

Python

import gridfit
# Interpolate between 0 and 1 with 1 interval
result = gridfit.interp(0, 1, 1)
print(result)  # [0.5]

R

library(gridfit)
# Interpolate between 0 and 1 with 1 interval
result <- interp(0, 1, 1)
print(result)  # [0.5]

For more details, see the README or source code.