Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1467
Number of posts: 2144

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Least squares method (LS) Posted by toybani on 14 Feb 2011 at 5:58 PM
Hi... i have two classes with 50 vectors each and i need to classify a new vector to one of them...

can somebody give me the simple steps that Least squares method uses....

for example for the k-NN algorithm you need to

1) calculate the Eucleidian distances between the vector you want to classify and the vectors of the two classes

2) take the k shortest distances and classify the new vector depending from witch class the shortest distances came from...

thanks in advance
Report
Re: Least squares method (LS) Posted by giug on 15 Feb 2011 at 5:13 AM
search "Least squares" in the matlab help.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.