Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Rohde committed May 9, 2023
1 parent 375784d commit e3b5956
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def build_extension(self, ext):

setup(
name='Fred-Frechet',
version='1.11',
version='1.11.2',
author='Dennis Rohde',
author_email='[email protected]',
description='A fast, scalable and light-weight C++ Fréchet distance library, exposed to python and focused on (k,l)-clustering of polygonal curves.',
Expand Down
6 changes: 4 additions & 2 deletions src/clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ Clustering_Result kl_cluster(const curve_number_t num_centers, const curve_size_
}

if (not consecutive_call) {
if (Config::verbosity > 0) py::print("KL_CLUST: allocating ", in.size(), " x ", in.size(), " distance_matrix");
if (use_distance_matrix) distances = Distance_Matrix(in.size(), in.size());
if (use_distance_matrix) {
if (Config::verbosity > 0) py::print("KL_CLUST: allocating ", in.size(), " x ", in.size(), " distance_matrix");
distances = Distance_Matrix(in.size(), in.size());
}
if (Config::verbosity > 0) py::print("KL_CLUST: allocating space for ", in.size(), " simplifications, each of complexity ", ell);
simplifications = Curves(in.size(), ell, in.dimensions());
} else if (use_distance_matrix) {
Expand Down
1 change: 1 addition & 0 deletions src/simplification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ Curve approximate_minimum_link_simplification(const Curve &pcurve, const distanc

Curve approximate_minimum_error_simplification(const Curve &curve, const curve_size_t ell) {
if (Config::verbosity > 1) py::print("ASIMPL: computing approximate minimum error simplification");
if (ell >= curve.complexity()) return curve;
Curve simplification(curve.dimensions()), segment(2, curve.dimensions());

segment[0] = curve.front();
Expand Down

0 comments on commit e3b5956

Please sign in to comment.