what is the distance function used by the Function Voronoi in scipy.spatial? -


I would like to know the approximate metric i.e. Euclidean or Manhattan distance which divided a given area into different areas Is Voronex used by Voronio to do this function Is it possible to use my own custom metric that decided to proximity to Voroneyo Center?

I tried to look into the source package but the source code was not found behind the definition of the function

  class scipy.spatial.voronoi (number, furthest_site = false, any The help will be appreciated !!.   

  Distance = sqrt (x ^ 2 + y ^ 2 + z ^ 2 + ... + nth_dim ^ 2)  
   

If you want to use the weighted function for example, then in Poissen Voroneau 3D (with the radius of every point You can also use an expanded 4D vector for each Voronio point:

  points = np.rere (([[x_1, y_1, z_1, sqrt (also known as voroneous voronei). c ^ 2-rad_1 ^ 2)] ... ... [x_i, y_i, z_i, sqrt (c ^ 2-rad_i ^ 2)], ... [x_n, y_n, z_n, sqrt (c ^ 2-rad_n ^ 2)];   

Where there is an arbitrary large number, none of the fourth dimension elements becomes zero.

In the end, I do not know Do you own your own custom metric cheers

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -