bas.point: Draws a Balanced Acceptance Sample (BAS) from a discrete...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/bas.point.r

Description

Draws a BAS sample from a SpatialPoints* object.

Usage

1
bas.point(x, n)

Arguments

x

A SpatialPoints or SpatialPointsDataFrame object. This object must contain at least 1 point.

n

Sample size. Number of points to select from the set of points contained in x.

Details

The BAS method for points computes the minimum distance between any two points in x and places a small square (pixel) around each. Size of the square around each point is d/sqrt(2) on a side, where d is the minimum distance between points. The BAS method for points then selects a BAS sample from the set of polygons (i.e., squares) surrounding each point (see bas.polygon). The BAS method of polygons selects Halton points until n points are located inside the squares surrounding the points. When a square contains a Halton point, the official sample location is the the original point (center of the square), not the Halton point.

Value

A SpatialPointsDataFrame containing locations in the BAS sample, in BAS order. Attributes of the sample points are:

Additional attributes of the output object, beyond those which make it a SpatialPointsDataFrame, are:

Author(s)

Trent McDonald

See Also

bas.polygon, bas.line, spsample

Examples

1
2
3
4
## Not run: 
bas.point( WA.cities, 100)

## End(Not run)

SDraw documentation built on July 8, 2020, 6:23 p.m.