package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `RectBivariateSpline
]
type t = [ `Object | `RectBivariateSpline ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val create : ?bbox:[> `Ndarray ] Np.Obj.t -> ?kx:Py.Object.t -> ?ky:Py.Object.t -> ?s:float -> x:Py.Object.t -> y:Py.Object.t -> z:[> `Ndarray ] Np.Obj.t -> unit -> t

Bivariate spline approximation over a rectangular mesh.

Can be used for both smoothing and interpolating data.

Parameters ---------- x,y : array_like 1-D arrays of coordinates in strictly ascending order. z : array_like 2-D array of data with shape (x.size,y.size). bbox : array_like, optional Sequence of length 4 specifying the boundary of the rectangular approximation domain. By default, ``bbox=min(x,tx),max(x,tx), min(y,ty),max(y,ty)``. kx, ky : ints, optional Degrees of the bivariate spline. Default is 3. s : float, optional Positive smoothing factor defined for estimation condition: ``sum((wi*(zi-s(xi, yi)))**2, axis=0) <= s`` Default is ``s=0``, which is for interpolation.

See Also -------- SmoothBivariateSpline : a smoothing bivariate spline for scattered data bisplrep : an older wrapping of FITPACK bisplev : an older wrapping of FITPACK UnivariateSpline : a similar class for univariate spline interpolation

val ev : ?dx:int -> ?dy:int -> xi:Py.Object.t -> yi:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Evaluate the spline at points

Returns the interpolated value at ``(xii, yii), i=0,...,len(xi)-1``.

Parameters ---------- xi, yi : array_like Input coordinates. Standard Numpy broadcasting is obeyed. dx : int, optional Order of x-derivative

.. versionadded:: 0.14.0 dy : int, optional Order of y-derivative

.. versionadded:: 0.14.0

val get_coeffs : [> tag ] Obj.t -> Py.Object.t

Return spline coefficients.

val get_knots : [> tag ] Obj.t -> Py.Object.t

Return a tuple (tx,ty) where tx,ty contain knots positions of the spline with respect to x-, y-variable, respectively. The position of interior and additional knots are given as tk+1:-k-1 and t:k+1=b, t-k-1:=e, respectively.

val get_residual : [> tag ] Obj.t -> Py.Object.t

Return weighted sum of squared residuals of the spline approximation: sum ((wi*(zi-s(xi,yi)))**2,axis=0)

val integral : xa:Py.Object.t -> xb:Py.Object.t -> ya:Py.Object.t -> yb:Py.Object.t -> [> tag ] Obj.t -> float

Evaluate the integral of the spline over area xa,xb x ya,yb.

Parameters ---------- xa, xb : float The end-points of the x integration interval. ya, yb : float The end-points of the y integration interval.

Returns ------- integ : float The value of the resulting integral.

val to_string : t -> string

Print the object to a human-readable representation.

val show : t -> string

Print the object to a human-readable representation.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print the object to a formatter.