The best.domain is used to represent domains of a Euclidean space. It is used to represent the support of a best.random.RandomVector.
Inherits : | best.Object |
---|
A class that represents a domain of a Euclidean space.
Initialize the object.
Parameters: | num_dim (int) – The number of dimensions. |
---|
Get the number of dimensions
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 |
Overloads : | best.Object._to_string() |
---|
Inherits : | best.domain.Domain |
---|
A class that represents a 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. |
---|
Get the rectangle.
Inherits : | best.domain.Rectangle |
---|
A class that represents a unit cube domain.
Initialize the object.
Parameters: | num_dim (int) – The number of dimensions. |
---|
Inherits : | best.domain.Rectangle |
---|
A class that represents all space.
Initialize the object.
Parameters: | num_dim (int) – The number of dimensions. |
---|