EEE 244-7: Curve Fitting.

Slides:



Advertisements
Similar presentations
Splines and Piecewise Interpolation
Advertisements

Mark Trew CT Halfway Down Halfway down the stairs Is a stair Where I sit. There isn't any Other stair Quite like It. I'm not at the bottom, I'm.
1 Chapter 13 Curve Fitting and Correlation This chapter will be concerned primarily with two separate but closely interrelated processes: (1) the fitting.
1 Eng. Mohamed El-Taher Eng. Ahmed Ibrahim. 2 1.FUNCTION SUMMARY polyfun  Polynomial functions are located in the MATLAB polyfun directory. For a complete.
March 1, 2009Dr. Muhammed Al-Mulhem1 ICS 415 Computer Graphics Hermite Splines Dr. Muhammed Al-Mulhem March 1, 2009 Dr. Muhammed Al-Mulhem March 1, 2009.
Chapter 15 Above: GPS time series from southern California after removing several curve fits to the data.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
CITS2401 Computer Analysis & Visualisation
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
Lecture 11 Chap. 15. Outline Interpolation – Linear Interpolation – Cubic Spline Interpolation – Extrapolation 15.2 Curve.
MATLAB EXAMPLES Interpolation and Integration 58:111 Numerical Calculations Department of Mechanical and Industrial Engineering.
Curve-Fitting Interpolation
1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,
Part 4 Chapter 13 Linear Regression
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Introduction  Today we are looking at how to interpret experimental data  Normally, data is acquired with random errors  How do we take the data and.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
Hydroinformatics: Session4 Dr Ivan Stoianov Room 328B Dr Andrew Ireson (Room 304) Mr Juan Rodriguez-Sanchez (411A) Mr Baback.
Recap Summary of Chapter 6 Interpolation Linear Interpolation.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Biostatistics Lecture 17 6/15 & 6/16/2015. Chapter 17 – Correlation & Regression Correlation (Pearson’s correlation coefficient) Linear Regression Multiple.
Curve Fitting and Regression EEE 244. Descriptive Statistics in MATLAB MATLAB has several built-in commands to compute and display descriptive statistics.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Polynomial Interpolation You will frequently have occasions to estimate intermediate values between precise data points. The function you use to interpolate.
Advanced Topics- Polynomials
Department of Mechanical Engineering, LSU Session IV MATLAB Tutorials Session IV Mathematical Applications using MATLAB Rajeev Madazhy
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
ES 240: Scientific and Engineering Computation. Chapter 13: Linear Regression 13. 1: Statistical Review Uchechukwu Ofoegbu Temple University.
Curve-Fitting Regression
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
Lecture 10 2D plotting & curve fitting Subplots Other 2-D Plots Other 2-D Plots Curve fitting © 2007 Daniel Valentine. All rights reserved. Published by.
41 - 4/24/2000AME 150L1 Solving Engineering Problems, Integrating Equations.
Interpolation.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline Interpolation.
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Polynomials, Curve Fitting and Interpolation. In this chapter will study Polynomials – functions of a special form that arise often in science and engineering.
Mohiuddin Ahmad SUNG-BONG JANG Interpolation II (8.4 SPLINE INTERPOLATION) (8.5 MATLAB’s INTERPOLATION Functions)
Spline Interpolation A Primer on the Basics by Don Allen.
MODEL FITTING jiangyushan. Introduction The goal of model fitting is to choose values for the parameters in a function to best describe a set of data.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 17 and 18 Interpolation.
Math 495B Polynomial Interpolation Special case of a step function. Frederic Gibou.
Matlab/Octave/FreeMat: Powerful Tools for Engineering Analysis BJ Furman 02DEC2012.
Unit 3-1: Higher-Degree Polynomials Functions Topics: Identify Graphs of Higher-Degree Polynomials Functions Graph Cubic and Quartic Functions Find Local.
Lecture 29: Modeling Data. Data Modeling Interpolate between data points, using either linear or cubic spline models Model a set of data points as a polynomial.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
MATLAB for Engineers 3E, by Holly Moore. © 2011 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
EEE 244-3: MATRICES AND EQUATION SOLVING
Introduction to Programming for Mechanical Engineers
Engineering Problem Solution
Salinity Calibration fit with MATLAB
Curve-Fitting Spline Interpolation
Interpolation Methods
Chapter 15 Curve Fitting : Splines
Lecture 10 2D plotting & curve fitting
4.2 Properties of Polynomial Graphs
Lagrangian Interpolation
Spline Interpolation Class XVII.
Linear regression Fitting a straight line to observations.
Splines and Piecewise Interpolation
Interpolation Methods
MATH 2140 Numerical Methods
INTERPOLATION For both irregulary spaced and evenly spaced data.
EEE 244-3: MATRICES AND EQUATION SOLVING
SKTN 2393 Numerical Methods for Nuclear Engineers
Remember, the coordinates should form a straight line.
Presentation transcript:

EEE 244-7: Curve Fitting

Need for curve fitting Engineering projects involve collection of data, such as line voltage, cellular signal power Curve fitting provides a smooth fit to the data by an approximating function Data can be approximated by polynomial functions and splines

Polynomial functions Approximating curve yc represented by an mth order polynomial: Polynomial coefficients c1, c2 ……cm+1 values are obtained from data points Linear or straight line fit: m = 1 Nonlinear fit : m > 1

Matlab functions for polynomial curve fitting The coefficient matrix C = [c1, c2 ……cm+1] can be calculated by the Matlab polyfit command: C = polyfit(x,y,m) where [x y] is the data set m is the order of the polynomial The command polyval (C,x0) gives the value of the polynomial at the point x0

Example of polynomial curve fitting

Cubic splines Polynomial approximation can produce points that are not allowed For example, if the data is for absolute voltage, polynomial can have negative and positive values Splines are piecewise approximating cubic functions that can overcome polynomial problems

Matlab command for cubic splines The Matlab command interp1 creates cubic spline set Given the data set [x y], the command: yi = interp1(x,y,xi, spline) yields the value of the function at the point xi The function can be obtained by giving a range of [xi yi[

Example of curve fitting Given the following data set: Write a Matlab program to fit a curve using: Polynomial function of order 3 Cubic spline fit In both cases, sketch the approximating function