()
| 9 | ) |
| 10 | |
| 11 | func ExampleCorrelation() { |
| 12 | s1 := []float64{1, 2, 3, 4, 5} |
| 13 | s2 := []float64{1, 2, 3, 5, 6} |
| 14 | a, _ := stats.Correlation(s1, s2) |
| 15 | rounded, _ := stats.Round(a, 5) |
| 16 | fmt.Println(rounded) |
| 17 | // Output: 0.99124 |
| 18 | } |
| 19 | |
| 20 | func TestCorrelation(t *testing.T) { |
| 21 | s1 := []float64{1, 2, 3, 4, 5} |
nothing calls this directly
no test coverage detected
searching dependent graphs…