pycvxset.common.prune_and_round_vertices¶
- pycvxset.common.prune_and_round_vertices(V, decimal_precision=3)[source]¶
Filter through the vertices to skip any point that has another point (down in the list) that is close to it in the list.
- Parameters:
V (array_like) – Matrix of vertices (N times self.dim)
decimal_precision (int, optional) – The decimal precision for rounding the vertices. Defaults to PLOTTING_DECIMAL_PRECISION_CDD from pycvxset.common.constants.
- Returns:
The pruned and rounded array of vertices.
- Return type:
numpy.ndarray