mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 11:21:14 +08:00
stat/spatial: fix example name and add package doc
This commit is contained in:
6
stat/spatial/doc.go
Normal file
6
stat/spatial/doc.go
Normal 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"
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user