pyrocko.spit¶
N-dimensional space partitioning multi-linear interpolator.
Classes
|
N-dimensional space partitioning interpolator. |
- class SPTree(f=None, ftol=None, xbounds=None, xtols=None, filename=None, addargs=())[source]¶
Bases:
object
N-dimensional space partitioning interpolator.
- Parameters:
f – callable function
f(x)
wherex
is a vector of sizen
ftol – target accuracy
|f_interp(x) - f(x)| <= ftol
xbounds – bounds of
x
, shape(n, 2)
xtols – target coarsenesses in
x
, vector of sizen
addargs – additional arguments to pass to
f