Analytical solution for Orthogonal Linear Least Squares in two dimensions 1.0 
Date Added: September 01, 2013  Visits: 248 


ORTHLLS2D returns the Orthogonal Linear Least Squares estimate for parameters of line a x + b y + c = 0function f = OrthLLS2D(x, y)Inputs x and y must be real vectors of equal size.Output f is the real vector [a b c] where a, b and c are the estimated parameters of the linear equation.Since a more general function called LINORTFITN has already been submitted to File Exchange (ID number: 16800) in October 2007 by Mr. F. Carr, my file is supposed to be used as a brief introduction to the analytical problem in an extremely simple case.Orthogonal Least Squares Estimate on a plane, in the simple case of a linear equation, is in fact a problem that can be easily solved analytically with no approximation (see pdf file for detailed explanation). Notice that in the general multidimensional case, an analytical solution may not exist (although Mr. Carr's function is an efficient approximation of the solution).% ====================================================% EXAMPLE: HOW TO USE THE FUNCTION% ====================================================Build two series, given the linear relation y = mx + q + errorT = 1000; % number of pointsm = 1; % slopeq = 1; % interceptx = randn(T, 1); % random x valuesu = randn(T, 1); % random errory = m * x + q + u; % y = mx + q + errorf = OrthLLS2D(x, y); % estimate [a, b, c] for equation ax + by + c = 0plot(x, y, '.') % scatter plot for empirical pointshold onplot(x, [ones(T,1) x] * [f(3); f(1)], '*r');% plot orthogonal linear least squaresb1 = regress(y, [ones(T,1) x]); % parameters of the ordinary least squares (y as a function of x)b2 = regress(x, [ones(T,1) y]); % parameters of the ordinary least squares (x as a function of y)plot(x, [ones(T,1) x] * b1, '.g'); % plot ordinary least squares (y as a function of x)plot([ones(T,1) y] * b2, y, '.c'); % plot ordinary least squares (x as a function of y)% ====================================================See also LINORTFIT2, LINORTFITN.

License: Shareware  Size: 10 KB 
Development Tools

erfz 1.0
Compute the erf or error function for complex inputs. Valid over the entire complex plane. 
10 KB  
Development Editors

NH's Function Point Analyzer 1.0
With NH's Function Point Analyzer it is easy to get a quick and clear documentation of function point countings according to IFPUG (International Function Point Users Group) standard 4.2. While counting, you will record functions and databases in... 
778.24 KB  
Development Tools

Gaussian Hypergeometric Function 1.0
HYPERGEOMETRIC2F1 Computes a hypergeometric function using the series expansion:f(a,b;c;x)=1 + [ab/1!c]x + [a(a+1)b(b+1)/2!c(c+1)]x^2 +[a(a+1)(a+2)b(b+1)(b+2)/3!c(c+1)(c+2)]x^3 + ...This function solves the Gaussian Hypergeometric Differential... 
10 KB  
Multimedia

multiwaitbar 1.0
This function stacks a series of status bars on the same figure, with labels. It also provides the ability to pause programs that call it by providing a "pause" pushbutton. It is much nicer than waitbar, and is easier to use. 
10 KB  
Development Tools

ifilter: Interactive Fourier filter function 3
ifilter(x,y) or ifilter(y) or ifilter([x y]) or ry=ifilter(x,y,center,width,shape,plotmode,filtermode)Keyboardoperated interactive Fourier filter function for timeseries signal (x,y), with keyboard controls that allow you to adjust the filter... 
10 KB  
Education

Cfa Formula 1 Free 1.0.0
Tired of 20 page formula sheets that are difficult to navigate and easy to misplace in your pile of notes? The cfaformula app is the answer to your woes. Equiped with: Over 250 formulas and descriptions. A fast and... 
21.6 MB  
Education

Cfa formula lvl 1 2.0.14
Tired of 20 page formula sheets that are difficult to navigate and easy to misplace in your pile of notes? The cfaformula app is the answer to your woes. Equiped with: Over 250 formulas and descriptions. A fast and... 
21.6 MB  
Business

FP Estimate 1.0.0.1
Project estimation based on Function Points. By use of the IFPUG methodology an size of the project can be determined. The app allows for a quick estimate of project (development) effor, duration and costs, based on selected... 
1024 KB  
Multimedia

Auto TV to Sabnzbd 0.2
Auto TV to Sabnzbd is a php multimedia script to list your favourite tv series and to help search for your favortire tv content.Auto Tv to Sabnzbd is build on Kohana 3 framework,outputs RSS feed for Sabnzbd,search NZBMatrix for new... 
3.01 MB  
Development Tools

Get the Slope and Intercept of drawn Lines 1.0
SYNTAX: [p1,p2,slope,inter]=getslopeintercept OUTPUTS: P1= coordinates of the first cliked point P2= coordinates of the second cliked point SLOPE= slope of the drawn line INTER= intercept Y(X=0) WHAT ? In the current figure, you have to draw a... 
10 KB 
Scripts

Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers.... 
5.49 MB  
Scripts

B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Signup Account (Registration of account). Lead generation tools (for the sellers). Email verification to... 
5.49 MB  
Scripts

B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or... 
5.49 MB  
Scripts

Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start... 
5.49 MB  
Scripts

Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed... 
5.49 MB  
Development Tools

VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV. 
10 KB  
Development Tools

Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]... 
768 KB  
Development Tools

IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the ModelViewController (MVC) pattern. It provides the basic functionality developers need, without... 
51.2 KB  
Development Tools

7Zip for Script 4.42
7Zip is a file archiver with a high compression ratio.Features: High compression ratio in new 7z format with LZMA compression Supported formats: Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,... 
624.64 KB  
Development Tools

Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data crossclassified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a nonparametric... 
10 KB 