Skip to content
Snippets Groups Projects
Commit ec21ffbc authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Polish

parent e0bed33b
No related branches found
No related tags found
No related merge requests found
...@@ -209,7 +209,7 @@ for edge in g.edges(): ...@@ -209,7 +209,7 @@ for edge in g.edges():
Delta_R_Vmax = g.vp.last_av_rad[source_node] \ Delta_R_Vmax = g.vp.last_av_rad[source_node] \
- g.vp.first_av_rad[target_node] - g.vp.first_av_rad[target_node]
# Calculate the cost function and assign as weight to the edge: # Calculate the cost function and assign to the edge:
g.ep.cost_function[edge] \ g.ep.cost_function[edge] \
= math.sqrt(((Delta_Cent - delta_cent_mean) / delta_cent_std)**2 = math.sqrt(((Delta_Cent - delta_cent_mean) / delta_cent_std)**2
+ ((Delta_Ro - delta_ro_mean) / delta_ro_std)**2 + ((Delta_Ro - delta_ro_mean) / delta_ro_std)**2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment