package scipy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type tag = [
  1. | `Rectangle
]
type t = [ `Object | `Rectangle ] Obj.t
val of_pyobject : Py.Object.t -> t
val to_pyobject : [> tag ] Obj.t -> Py.Object.t
val create : maxes:Py.Object.t -> mins:Py.Object.t -> unit -> t

Hyperrectangle class.

Represents a Cartesian product of intervals.

val 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.

val 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.

val 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.

val 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.

val 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.

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

Total volume.

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.