Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
PostgreSQL Data Access Components 4.4
Database Workbench Pro 5.6.4
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
IBDAC 6.4
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
Azizi search engine script PHP 4.1.10
HTMLPad 2018 15.5
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Baseline Fit 1.0
File ID: 78152






Baseline Fit 1.0
Download Baseline Fit 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 7
Submit Rating:
Baseline Fit 1.0 Description
Description: Baseline Fit each column in "x".

There did not seem to be a similar function in th file exchange. This routine is simply a wrapper for two Matlab routines, interp1 and ginput.

Syntax:
[ycorr,yfit] = bf(y,pts,avgpts,method,confirm);
ycorr = bf(y); ycorr = bf(y,method);

A baseline fit is interpolated from selected points and then applied to the data. The selected points are indices into the column and may be specified explicitly ("pts") or interactively.

Arguments following "y" may be in any order.

To provide some noise immunity, "avgpts" determines the width in points for the calculation of the mean y(pts).

The "method" controls the algorithm applied for the baseline fit, see Matlab's interp1. (Default is 'spline').

"confirm", if specified as the string 'confirm', will allow the user to see the result and to confirm it is acceptable. If not the user can reslect "pts".

Examples:
[y,yfit] = bf(y,'confirm','linear');
"y" will be plotted and the user is instructed to select points for the fit. A baseline will be linearly interpolated from the selected points and will be plotted together with "y". The user is prompted as to whether to redo the baseline selection. Upon completion, the corrected data "y" and the fitted baseline "yfit" are output.

ycorr = bf(y,5);
"y" is plotted and the user is instructed to select points for the fit. The baseline fit is based on the mean value of "y" over 5 points centered on the selected points. Cubic spline interpolation is used for the baseline fit. The corrected data "ycorr" is output.

ycorr = bf(y,[5,10,15,30,35,40],'pchip');
Points with the specified indices are used to calculate a baseline fit using the piecewise cubic Hermite interpolation method. No data is plotted. The baseline fit is based on the mean value of "y" over 3 points centered on the selected points. The corrected data "ycorr" is output.

License: Freeware

Related: instructed, plotted, bfy confirm linear, yyfit, Select, linearly, prompted, quotptsquotexamples, reslect, String, spline quotconfirmquot, default, confirm, acceptable, result, Selection

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 7



More Similar Code

On the gaussian fit i used "polyfit" which gives you en absolut one solution, but have some problems fitting non-linear model.

In the attached file example i use "nlinfit", which can fit any kind of function that you want. the problem is that you need to give here a starting point.

"main.m" include the example code to use nlinfit.

"data.txt" is data (x,y) that needed to...



CSS customizations can be applied to the calendar to fit any web design scheme.

This plugin forms the basis for the jQuery UI Datepicker. It is made available as a separate plugin since the UI team desired simplified functionality for...



This is a robust and accurate circle fit. It works well even if data
points are observed only within a small arc. This circle fit was
proposed by G. Taubin in article "Estimation Of Planar Curves, Surfaces And Nonplanar Space Curves...



This is a fast non-iterative ellipse fit, and among fast non-iterative ellipse fits this is the most accurate and robust.

It takes the xy-coordinates of data points, and returns the coefficients of the equation of the ellipse:



This is a fast and non-iterative ellipse fit.
Usage:

A = EllipseDirectFit(XY)

Input: XY(n,2) is the array of coordinates of n points
x(i)=XY(i,1), y(i)=XY(i,2)

Output: A = [a b c d e f]' is the vector...



How to fit a 2D Gaussian function to noisy data in Matlab? Or data with another number of dimensions and arbitrary fit function?

It took me a while to find out how Matlab does this by the functions lsqcurvefit, fmincon or fminsearch....



Simple example of the use of the FMINSEARCH function to fit the blackbody equation to the emission spectrum of an incandescent body for the purpose of estimating its color temperature and emissivity. fitblackbody.m is the fitting function....



-function angles=satang4(strSys1,latA,longA,longsat,strSys2,latB,longB)
-calculation of satellite angles: elevation, azimuth, and also relative azimuth and baseline orientation if input data
-belongs to two sites
-Sources:



Fits an ellipsoid into a 3D set of points, allows some constraints, like orientation constraint and equal radii constraint. E.g., you can use it to fit a rugby ball, or a sphere. 'help ellipsoid_fit' says it all. Returns both the algebraic...



This is a robust and accurate circle fit. It works well even if data
points are observed only within a small arc. This circle fit was proposed by V. Pratt in article "Direct least-squares fitting of algebraic surfaces", Computer...

User Review for Baseline Fit
- required fields
     

Please enter text on the image