Domain

The best.domain is used to represent domains of a Euclidean space. It is used to represent the support of a best.random.RandomVector.

class best.domain.Domain
Inherits :best.Object

A class that represents a domain of a Euclidean space.

__init__(num_dim[, name='Domain'])

Initialize the object.

Parameters:num_dim (int) – The number of dimensions.
num_dim

Get the number of dimensions

is_in(x)

Check if x is inside the domain.

Note :This must be implemented by the children of this class.
Parameters:x (1D numpy array) – An point.
Throws :NotImplementedError
_to_string(pad):
Overloads :best.Object._to_string()
class best.domain.Rectangle
Inherits :best.domain.Domain

A class that represents a rectangular domain.

__init__(rectangle[name='Rectangular Domain'])

Initialize the object.

Parameters:rectangle (2D numpy array or list/tuple of list/tuples of float) – This must be a num_dim x 2 array representing a rectangle.
rectangle

Get the rectangle.

class best.domain.UnitCube
Inherits :best.domain.Rectangle

A class that represents a unit cube domain.

__init__(num_dim[, self='Unit Cube Domain'])

Initialize the object.

Parameters:num_dim (int) – The number of dimensions.
class best.domain.AllSpace
Inherits :best.domain.Rectangle

A class that represents all space.

__init__(num_dim[, self='All Space Domain'])

Initialize the object.

Parameters:num_dim (int) – The number of dimensions.

Previous topic

Covariance Functions

Next topic

Random

This Page