distsuml2 | R Documentation |
distsum
and distsumgra
functions for the Euclidean norm (l_2
). Mainly for internal use.
distsuml2(o, x = 0, y = 0)
o |
An object of |
x |
The x coordinate of the point to be evaluated. |
y |
The y coordinate of the point to be evaluated. |
partial |
If (x,y) is a demand point |
distsuml2
returns the objective function of the min-sum location problem, \sum_{a_i \in o} w_i d(a_i, (x,y))
, where d(a_i, (x,y))
gives the euclidean distances between a_i
and the point (x,y)
. distsumgra
returns the gradient vector of the function distsum
.
See also orloca-package
, distsum
, distsumgra
and distsummin
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.