forum.alglib.net

ALGLIB forum
It is currently Thu Jul 07, 2022 4:36 am

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: Linear regression syntax
PostPosted: Mon Jul 30, 2012 8:10 pm 
Offline

Joined: Mon Jul 30, 2012 7:55 pm
Posts: 1
Hello,

I am attempting to execute linear regression using AlgLib.NET, but I don't get the expected result. Due to lack of documentation I am not sure what data I should add in my matrix.

1. What is the way to index the double[,] representing the matrix? Which index represents the rows and which index represent the variables?
2. Am I supposed to add a column of all one's to the matrix?
3. Should the 'nvars'-variable be the number of features or the number of features +1 (for the extra column of one's).

Thanks in advance.

Edit: I am using
Code:
alglib.lrbuild
and
Code:
alglib.lrunpack
to execute the linear regression.


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