Learn R Programming

SphericalK (version 1.2)

sphere_khat: Calculate Spherical K-Function

Description

Main function to obtain spherical K-function for point-pattern analysis on the sphere.

Usage

sphere_khat(latitudes, longitudes, dis)

Arguments

latitudes
Latitudes of observed points on the sphere in degrees
longitudes
Longitudes of observed points on the sphere in degrees
dis
Vector of values for the argument r (from 0 to pi), at which K(r) is evaluated. By default, dis = seq(from=0,to=pi,by=0.1).

Value

Khats Estimated values of K-function

References

Robeson, S.M., Li, A., Huang, C., 2014. Point-pattern analysis on the sphere. Spatial Statistics. 10, 76-86.

See Also

sphere_montekhat

Examples

Run this code
lat<-sphere_random(100)$latitudes; lon<-sphere_random(100)$longitudes
d<-seq(from=0,to=pi,by=0.1)
sphere_khat(lat,lon,d)

Run the code above in your browser using DataLab