Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distance ¶
Distance function returns the distance (in meters) between two points of
a given longitude and latitude relatively accurately (using a spherical approximation of the Earth) through the Haversin Distance Formula for great arc distance on a sphere with accuracy for small distances
point coordinates are supplied in degrees and converted into rad. in the func
distance returned is METERS!!!!!! http://en.wikipedia.org/wiki/Haversine_formula
func InverseDW ¶
InverseDW is a function that takes in a slice of values and returns the weighted
distribution of each value in a slice of the same length. This is also protected with a division by zero or negative with and error return
This function uses the "Shepard's" method to determine the values and is a simple appoach. It uses the exponent value of p = 2 which is the defacto standard of this equation. Reference: https://en.wikipedia.org/wiki/Inverse_distance_weighting
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.