persp.loca.p {orloca}R Documentation

Plots of the min-sum objective function

Description

persp provides a graphical representations of min-sum function (distsum).

Usage

## S3 method for class 'loca.p'
persp(x, lp = numeric(0), xmin = min(x@x),
  xmax = max(x@x), ymin = min(x@y), ymax = max(x@y), n = 10, ...)

Arguments

x

The loca.p object to compute the objective.

lp

If given, then l_p norm will be used instead of the Euclidean norm.

xmin

The minimum value for x axis.

xmax

The maximum value for x axis.

ymin

The minimum value for y axis.

ymax

The maximum value for y axis.

n

The number of divisions for grid.

...

Other options.

Details

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

Value

A plot a 3D plot or min-sum function.

See Also

See also orloca-package, plot.loca.p and loca.p.

Examples

# A new unweighted loca.p object
loca <- loca.p(x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1))

# The 3D graphics
persp(loca)


[Package orloca version 4.8 Index]