Learn R Programming

orloca.es (version 3.2)

zsumlp: zsumlp y zsumlpgra del paquete orloca

Description

Las funciones zsum y zsumgra con norma $l_p$.

Usage

zsumlp(o, x=0, y=0, p=2)
zsumlpgra(o, x=0, y=0, p=2, partial=F)

Arguments

o
An object of loca.p class.
x
The x coordinate of the point to be evaluated.
y
The y coordinate of the point to be evaluated.
p
The $l_p$ norm to use.
partial
If (x,y) is a demand point partial=T means ignore such point to compute the gradient. This option is mainly for internal use.

Value

  • zsumlp returns the objective function of the min-sum location problem with $l_p$ norm, $\sum_{a_i \in o} w_i d(a_i, (x,y))$, where $d(a_i, (x,y))$ gives the distances between $a_i$ and the point $(x,y)$ using $l_p$ norm.

    zsumlpgra returns the gradient vector of the function zsumlp.

encoding

UTF-8

Details

If $p<1$ then="" $l_p$="" ara="" not="" a="" norm,="" so="" only="" $p="">=1$ are valid values.

See Also

Véase{Vease} zsum, orloca.es-package y zsumlpmin.