Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed Jan 11, 2016
1 parent f433ef9 commit dc47720
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bound.go
Expand Up @@ -12,7 +12,7 @@ type Bound struct {
sw, ne *Point
}

// NewBound creates a new bound given the paramters.
// NewBound creates a new bound given the parameters.
func NewBound(west, east, south, north float64) *Bound {
return &Bound{
sw: &Point{math.Min(east, west), math.Min(north, south)},
Expand Down
4 changes: 2 additions & 2 deletions clustering/clustering.go
Expand Up @@ -41,7 +41,7 @@ func cluster(clusters []*Cluster, distancer ClusterDistancer, threshold float64)

clusters, found := clusterClusters(
clusters,
// Default intialization, TODO: better bucketing/prefiltering will greatly increase performance.
// Default initialization, TODO: better bucketing/prefiltering will greatly increase performance.
initClusterDistances(clusters, distancer, threshold),
distancer,
threshold,
Expand Down Expand Up @@ -108,7 +108,7 @@ func geocluster(clusters []*Cluster, threshold float64) []*Cluster {

clusteredClusters, found := clusterClusters(
clusters,
// Default intialization, TODO: better bucketing/prefiltering will greatly increase performance.
// Default initialization, TODO: better bucketing/prefiltering will greatly increase performance.
// can use the bound above to help with this.
initClusterDistances(clusters, CentroidSquaredDistance{}, scaledThreshold),
CentroidSquaredDistance{},
Expand Down
2 changes: 1 addition & 1 deletion define.go
Expand Up @@ -24,7 +24,7 @@ var minLongitude = deg2rad(-180)
//MaxLongitude is the maxiumum possible longitude
var maxLongitude = deg2rad(180)

// GeoHashPrecision is the number of charactors of a encoded GeoHash.
// GeoHashPrecision is the number of characters of a encoded GeoHash.
var GeoHashPrecision = 12

func yesHaversine(haversine []bool) bool {
Expand Down
2 changes: 1 addition & 1 deletion point.go
@@ -1,5 +1,5 @@
/*
Package geo is a geometry/geography libary in Go. Its purpose is to allow for
Package geo is a geometry/geography library in Go. Its purpose is to allow for
basic point, line and path operations in the context of online mapping.
*/
package geo
Expand Down
4 changes: 2 additions & 2 deletions quadtree/examples_test.go
Expand Up @@ -9,7 +9,7 @@ import (
)

func ExampleQuadtreeFind() {
r := rand.New(rand.NewSource(42)) // to make things reproducable
r := rand.New(rand.NewSource(42)) // to make things reproducible

qt := quadtree.New(geo.NewBound(0, 1, 0, 1))

Expand All @@ -26,7 +26,7 @@ func ExampleQuadtreeFind() {
}

func ExampleQuadtreeInBound() {
r := rand.New(rand.NewSource(52)) // to make things reproducable
r := rand.New(rand.NewSource(52)) // to make things reproducible

qt := quadtree.New(geo.NewBound(0, 1, 0, 1))

Expand Down

0 comments on commit dc47720

Please sign in to comment.