Description Usage Arguments Value References See Also Examples
Main function to obtain spherical K-function for point-pattern analysis on the sphere.
1 | sphere_khat(latitudes, longitudes, dis)
|
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). |
Khats Estimated values of K-function
Robeson, S.M., Li, A., Huang, C., 2014. Point-pattern analysis on the sphere. Spatial Statistics. 10, 76-86.
1 2 3 | lat<-sphere_random(100)$latitudes; lon<-sphere_random(100)$longitudes
d<-seq(from=0,to=pi,by=0.1)
sphere_khat(lat,lon,d)
|
[1] 0.0000000000 0.0168447986 -0.0008510095 -0.0166083994 -0.0085655425
[6] -0.0583464440 -0.0413658343 -0.0990473372 -0.1031988292 -0.1231639594
[11] -0.0958389943 -0.0618153720 -0.0359590063 -0.1242430695 -0.0389210234
[16] -0.0480452355 0.0043948845 -0.0251076678 -0.0287508008 -0.0511328869
[21] 0.0356341133 0.0038229466 -0.0724540505 -0.0914759497 -0.0382054375
[26] 0.0080464160 0.0233565302 0.0137632184 0.0431564882 0.0580808542
[31] 0.0273377481 0.0000000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.