mirror of
https://github.com/gonum/gonum.git
synced 2025-10-19 21:44:41 +08:00
Reword help for KolmogorovSmirnov
Reworded the first couple sentences to KS, which seemed to be sentence fragments.
This commit is contained in:
8
stat.go
8
stat.go
@@ -412,12 +412,12 @@ func JensenShannon(p, q []float64) float64 {
|
|||||||
return js
|
return js
|
||||||
}
|
}
|
||||||
|
|
||||||
// KolmogorovSmirnov computes the largest distance between the empirical CDFs
|
// KolmogorovSmirnov computes the largest distance between two empirical CDFs.
|
||||||
// of the two datasets. x and y consist of the sample locations with sample counts.
|
// Each dataset x and y consists of sample locations and counts, xWeights and
|
||||||
// xWeights and yWeights respectively. x and y must each be sorted.
|
// yWeights, respectively.
|
||||||
//
|
//
|
||||||
// x and y may have different lengths, though len(x) must equal len(xWeights), and
|
// x and y may have different lengths, though len(x) must equal len(xWeights), and
|
||||||
// len(y) must equal len(yWeights).
|
// len(y) must equal len(yWeights). Both x and y must be sorted.
|
||||||
//
|
//
|
||||||
// Special cases are:
|
// Special cases are:
|
||||||
// = 0 if len(x) == len(y) == 0
|
// = 0 if len(x) == len(y) == 0
|
||||||
|
Reference in New Issue
Block a user