WIP different small python scripts to generate corresponding images
The final API will be derived from these scripts into a different repository, which then only holds the corresponding functions that provide the corresponding functionalities described in the associated master thesis.
This commit is contained in:
@@ -108,8 +108,8 @@ def apply(g, seed, weight, convex_hull, ax, method, method_name):
|
||||
vp.a = np.nan_to_num(vp.a) # correct floating point values
|
||||
|
||||
# normalization
|
||||
min_val, max_val = vp.a.min(), vp.a.max()
|
||||
vp.a = (vp.a - min_val) / (max_val - min_val)
|
||||
# min_val, max_val = vp.a.min(), vp.a.max()
|
||||
# vp.a = (vp.a - min_val) / (max_val - min_val)
|
||||
|
||||
# generate model based on convex hull and associated centrality values
|
||||
quantification = plot.quantification_data(g, vp, convex_hull)
|
||||
@@ -147,8 +147,8 @@ def apply_corrected(g, seed, weight, convex_hull, ax, method, method_name):
|
||||
vp.a = np.nan_to_num(vp.a) # correct floating point values
|
||||
|
||||
# normalization
|
||||
min_val, max_val = vp.a.min(), vp.a.max()
|
||||
vp.a = (vp.a - min_val) / (max_val - min_val)
|
||||
# min_val, max_val = vp.a.min(), vp.a.max()
|
||||
# vp.a = (vp.a - min_val) / (max_val - min_val)
|
||||
|
||||
# generate model based on convex hull and associated centrality values
|
||||
quantification = plot.quantification_data(g, vp, convex_hull)
|
||||
|
||||
Reference in New Issue
Block a user