EncodedSpace¶
- class compressed_kde.EncodedSpace¶
Bases:
SpaceConstructs one-dimensional encoded space definition.
Their are two call signatures, depending on whether one would like to assign values to each point in the space, or use indices.
- EncodedSpace(label, distances, bandwidth)¶
- EncodedSpace(label, points, distances, bandwidth)
- Parameters
label (string) – label for encoded dimension
points (1d array) – vector of encoded points
distances ((n,n) array) – matrix of squared distances
bandwidth (scalar) – Bandwidth for default gaussian kernel
Attributes Summary
True if using index internally.
Methods Summary
grid(*args, **kwargs)Constructs grid.
Attributes Documentation
- use_index¶
True if using index internally.
Methods Documentation
- grid(*args, **kwargs) Grid¶
Constructs grid.
- grid(delta)¶
- grid(vector, valid)
The first syntax constructs a grid with regular spacing as determined by the delta argument. The second syntax constructs a grid from a vector of points/indices. Optionally, a boolean vector setting the validity of each grid point can be specified.