Hi, im newbie in vb.net and in general in programming.
I have a point cloud .txt , how can i introduce this in the matrix a?
Dim a(,) As Double = {{0, 1}, {0, 0}, {0, 2}} Dim nx As Integer = 2 Dim ny As Integer = 0 Dim normtype As Integer = 2 Dim kdt As kdtree = New alglib.kdtree Dim k As Integer Dim x() As Double Dim r(,) As Double = {} alglib.kdtreebuild(a, nx, ny, normtype, kdt) x = {2, 1} k = alglib.kdtreequeryknn(kdt, x, 1) alglib.kdtreequeryresultsx(kdt, r) TextBox1.Text = alglib.ap.format(r, 1)
|