package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `NearestNDInterpolator
]
type t = [ `NDInterpolatorBase | `NearestNDInterpolator | `Object ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val as_nd_interpolator : t -> [ `NDInterpolatorBase ] Obj.t
val create : ?rescale:bool -> ?tree_options:Py.Object.t -> x:[> `Ndarray ] Np.Obj.t -> y:Py.Object.t -> unit -> t

NearestNDInterpolator(x, y)

Nearest-neighbour interpolation in N dimensions.

.. versionadded:: 0.9

Methods ------- __call__

Parameters ---------- x : (Npoints, Ndims) ndarray of floats Data point coordinates. y : (Npoints,) ndarray of float or complex Data values. rescale : boolean, optional Rescale points to unit cube before performing interpolation. This is useful if some of the input dimensions have incommensurable units and differ by many orders of magnitude.

.. versionadded:: 0.14.0 tree_options : dict, optional Options passed to the underlying ``cKDTree``.

.. versionadded:: 0.17.0

Notes ----- Uses ``scipy.spatial.cKDTree``

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 : Format.formatter -> t -> unit

Pretty-print the object to a formatter.

OCaml

Innovation. Community. Security.