forum.alglib.net

ALGLIB forum
It is currently Sat Nov 23, 2024 12:31 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: alglib kd-tree vb.net
PostPosted: Mon Mar 18, 2013 8:37 pm 
Offline

Joined: Mon Mar 18, 2013 8:32 pm
Posts: 1
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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group