Commit b4738c41 authored by LANORE Vincent's avatar LANORE Vincent
Browse files

Slight refactoring so the last modif is more clear :)

parent 0f88d9ae
......@@ -177,7 +177,8 @@ MESSAGE("%s%% of drawn pairs were kept." % data("%.1f" % (100 * nb_ok / nb_it)))
MESSAGE("Post-treatment of pair bins...")
for i in range(nb_bins):
pair_bins[i] = pair_bins[i].sort_values(by=["distance"]) # sort by distance
MESSAGE("Class " + data(i) + " contains " + data(pair_bins[i].groupby(["p1", "p2"]).size().shape[0]) + " unique oriented pairs.")
unique_pairs_in_class = data(pair_bins[i].groupby(["p1", "p2"]).size().shape[0])
MESSAGE("Class " + data(i) + " contains " + unique_pairs_in_class + " unique oriented pairs.")
plot_bins = int(float(pair_bins[i]["distance"].max() - pair_bins[i]["distance"].min()) / 0.01)
plot_bins = max(1, plot_bins)
pair_bins[i]["distance"].hist(bins = plot_bins)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment