locSquad {geoCount}R Documentation

Simulate Squared Locations

Description

This function simulates a given number of locations equally distributed on a square.

Usage

locSquad(a, np)

Arguments

a

half length of the edge

np

the number of locations on each edge

Details

The center of the square is (0, 0).

Value

A (4\times np-4) \times 2 matrix indicates the x-y coordinates of the locations.

Author(s)

Liang Jing ljing918@gmail.com

See Also

locCircle, locGrid, simData, plotData.

Examples

## Not run: 
  plot(locSquad(0.5, 4))

## End(Not run)

[Package geoCount version 1.150120 Index]