Project1 - CS2073 Project 1 Linear Curve Fitting In the engineering world data samples can be acquired from physical devices using sensors This data

# Project1 - CS2073 Project 1 Linear Curve Fitting In the...

• 3

This preview shows page 1 - 2 out of 3 pages.

CS2073 Project 1 Linear Curve Fitting In the engineering world, data samples can be acquired from physical devices using sensors. This data is sampled (collected) at a certain sampling rate. For example, if your sampling rate is 1 sample per second, then after 5 seconds, you have collected 5 data samples. Thus, a certain number of data samples will be available after a certain interval, but they may not be sufficient. For example, in some engineering use-cases, you may require a data sample lying in between two sample points. This is achieved through the process of interpolation. In other use-cases, you may require predicting the value at a future time value. This is achieved through the process of extrapolation. To find such data, a function or a curve needs to be fitted using available data samples. Such a curve is usually represented as a function y=f(x), where f(x) can either be functions such as linear or of higher degree such as exponential, quadratic, spline, or higher order polynomials. Such curve fitting is normally based on the principle of least square errors. Fitting a curve to acquired data allows you to get a data sample at other