forum.alglib.net
http://forum.alglib.net/

alglib kd-tree vb.net
http://forum.alglib.net/viewtopic.php?f=2&t=797
Page 1 of 1

Author:  luissanchez [ Mon Mar 18, 2013 8:37 pm ]
Post subject:  alglib kd-tree vb.net

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)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/