src.utils.ptransf.min_dist_decimator_decorator
Classes
|
- class src.utils.ptransf.min_dist_decimator_decorator.MinDistDecimatorDecorator(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class representing a minimum distance decimator that can be used to decorate different components of the framework.
A point cloud \(\pmb{P} = [\pmb{X} | \pmb{F} | \pmb{y}]\) can be reduced to a minimum distance decimated representation \(\pmb{P'} = [\pmb{X'} | \pmb{F'} | \pmb{y'}]\). More concretely, an input point cloud with dimensionalities \(\pmb{X} \in \mathbb{R}^{m \times n_x}\), \(\pmb{F} \in \mathbb{R}^{m \times n_f}\), \(\pmb{y} \in \mathbb{Z}^{m}\) will be transformed to a representation with dimensionalities \(\pmb{X'} \in \mathbb{R}^{R \times n_x}\), \(\pmb{F'} \in \mathbb{R}^{R \times n_f}\), \(\pmb{y'} \in \mathbb{Z}^{R}\) where \(R \leq m\).
- Variables:
min_distance (float) – The minimum distance such that any pair of points in the decimated representation must be separated by at least this distance.
- __init__(**kwargs)
Initialize/instantiate a minimum distance decimator
- Parameters:
kwargs – The key-word specification to instantiate the MinDistDecimatorDecorator.
- Keyword Arguments:
min_distance (
float) – The minimum distance separating the points in the subsampled representation.- num_encoding_neighbors (
int) –
- num_encoding_neighbors (
- num_decoding_neighbors (
int) –
- num_decoding_neighbors (
- release_encoding_neighborhoods (
bool) –
- release_encoding_neighborhoods (
- threads (
int) –
- threads (
- representation_report_path (
str) –
- representation_report_path (
- transform(X, F=None, y=None, out_prefix=None)
- static apply_min_distance_decimation(X, min_distance)
Apply the minimum distance decimation algorithm to the given structure space.
- Parameters:
X (
np.ndarray) – The structure space to be decimated.min_distance (float) – The minimum distance between points governing the decimation.
- Returns:
The decimated representation of the input structure space.
- Return type:
np.ndarray