stat/spatial: fix example name and add package doc

This commit is contained in:
kortschak
2017-07-24 09:44:08 +09:30
committed by Dan Kortschak
parent 185d1d1b99
commit 10d593a507
3 changed files with 8 additions and 2 deletions

6
stat/spatial/doc.go Normal file
View File

@@ -0,0 +1,6 @@
// Copyright ©2017 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package spatial provides spatial statistical functions.
package spatial // import "gonum.org/v1/gonum/stat/spatial"

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package spatial // import "gonum.org/v1/gonum/stat/spatial"
package spatial
import (
"math"

View File

@@ -38,7 +38,7 @@ func ExampleGlobalMoransI_linear() {
// Moran's I=0.1111 z-score=0.6335
}
func ExampleGetisOrd() {
func ExampleGetisOrdGStar() {
data := []float64{0, 0, 0, 1, 1, 1, 0, 1, 0, 0}
// The locality here describes spatial neighbor