rloca.p {orloca} | R Documentation |
It returns a random instance of loca.p class object in a given rectangular region.
rloca.p(n, xmin=0, xmax=1, ymin=0, ymax=1)
n |
The number of demand points. |
xmin |
Minimun value for the x coordinates of the demand points. |
xmax |
Maximun value for the x coordinates of the demand points. |
ymin |
Minimun value for the y coordinates of the demand points. |
ymax |
Maximun value for the y coordinates of the demand points. |
n
must be at least 1.
xmin
must be less or equal than xmax
.
ymin
must be less or equal than ymax
.
If the arguments are valid values, it returns a new object of class
loca_p
, else it returns an error.
See also orloca-package
and loca.p
# A random loca.p object at unit square with 5 demand points rloca.p(5) # At another region rloca.p(10, xmin=-2, xmax=2, ymin=-2, ymax=2)