Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Algorithm

least-squares

  • Category : Algorithm
  • Tags :
  • Update : 2012-11-26
  • Size : 1kb
  • Downloaded :0次
  • Author :xuwenh******
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
* FILE: least-squares.c * This program computes a linear model for a set of given data. * * PROBLEM DESCRIPTION: * The method of least squares is a standard technique used to find * the equation of a straight line from a set of data. Equation for a * straight line is given by * y = mx + b * where m is the slope of the line and b is the y-intercept. * * Given a set of n points {(x1,y1), x2,y2),...,xn,yn)}, let * SUMx = x1 + x2 + ... + xn * SUMy = y1 + y2 + ... + yn * SUMxy = x1*y1 + x2*y2 + ... + xn*yn * SUMxx = x1*x1 + x2*x2 + ... + xn*xn * * The slope and y-intercept for the least-squares line can be * calculated using the following equations: * slope (m) = ( SUMx*SUMy - n*SUMxy ) / ( SUMx*SUMx - n*SUMxx ) * y-intercept (b) = ( SUMy - slope*SUMx ) / n * * AUTHOR: Dora Abdullah (Fortran version, 11/96) * REVISED: RYL (converted to C, 12/11/96)
Packet file list
(Preview for download)
least-squares.c
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.