DzananGanic/numericalgo

goroutine stack exceeds 1000000000-byte limit

Opened this issue · 0 comments

Hi,
I'm getting a runtime error in this case

       note:=2.5

        x := []float64{5.0, 3.0, 1.0, 2.0, 4.0, 1.0}
	y := []float64{0.0, 1.0, 2.0, 3.0, 4.0, 5.0}

	li := linear.New()
	li.Fit(x, y)

	estimate, err := interpolate.WithSingle(li, note)

github.com/DzananGanic/numericalgo/interpolate/linear.(*Linear).findNearestNeighbors(0xc0000cf360, 0x4004000000000000, 0x9, 0x8, 0x0, 0x0)