polyfitweighted

버전 1.0.0.0 (1.1 KB) 작성자: Salman Rogers
Simple function to calculate a polynomial best fit of 1D data Y with array of weights W (which must
다운로드 수: 4.1K
업데이트 날짜: 2007/1/2

라이선스 없음

Like polyfit.m but includes weighting of each data point.

Summary
----------------
Find a least-squares fit of 1D data y(x) with an nth order polynomial, weighted by w(x).

Usage
-----

P = polyfitweighted(X,Y,N,W) finds the coefficients of a polynomial P(X) of degree N that fits the data Y best in a least-squares sense. P is a row vector of length N+1 containing the polynomial coefficients in descending powers, P(1)*X^N + P(2)*X^(N-1) +...+ P(N)*X + P(N+1). W is a vector of weights. Vectors X,Y,W must be the same length.

Class support for inputs X,Y,W:
float: double, single

By SS Rogers http://ssr.phy.umist.ac.uk

인용 양식

Salman Rogers (2024). polyfitweighted (https://www.mathworks.com/matlabcentral/fileexchange/13520-polyfitweighted), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0