package scipy

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Spatial.RectangleSource

Sourcetype tag = [
  1. | `Rectangle
]
Sourcetype t = [ `Object | `Rectangle ] Obj.t
Sourceval of_pyobject : Py.Object.t -> t
Sourceval to_pyobject : [> tag ] Obj.t -> Py.Object.t
Sourceval create : maxes:Py.Object.t -> mins:Py.Object.t -> unit -> t

Hyperrectangle class.

Represents a Cartesian product of intervals.

Sourceval max_distance_point : ?p:float -> x:[> `Ndarray ] Np.Obj.t -> [> tag ] Obj.t -> Py.Object.t

Return the maximum distance between input and points in the hyperrectangle.

Parameters ---------- x : array_like Input array. p : float, optional Input.

Sourceval max_distance_rectangle : ?p:float -> other:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Compute the maximum distance between points in the two hyperrectangles.

Parameters ---------- other : hyperrectangle Input. p : float, optional Input.

Sourceval min_distance_point : ?p:float -> x:[> `Ndarray ] Np.Obj.t -> [> tag ] Obj.t -> Py.Object.t

Return the minimum distance between input and points in the hyperrectangle.

Parameters ---------- x : array_like Input. p : float, optional Input.

Sourceval min_distance_rectangle : ?p:float -> other:Py.Object.t -> [> tag ] Obj.t -> Py.Object.t

Compute the minimum distance between points in the two hyperrectangles.

Parameters ---------- other : hyperrectangle Input. p : float Input.

Sourceval split : d:int -> split:float -> [> tag ] Obj.t -> Py.Object.t

Produce two hyperrectangles by splitting.

In general, if you need to compute maximum and minimum distances to the children, it can be done more efficiently by updating the maximum and minimum distances to the parent.

Parameters ---------- d : int Axis to split hyperrectangle along. split : float Position along axis `d` to split at.

Sourceval volume : [> tag ] Obj.t -> Py.Object.t

Total volume.

Sourceval to_string : t -> string

Print the object to a human-readable representation.

Sourceval show : t -> string

Print the object to a human-readable representation.

Sourceval pp : Format.formatter -> t -> unit

Pretty-print the object to a formatter.