function [p,y,a] = qint(ym1,y0,yp1)
%QINT - quadratic interpolation of three adjacent samples
%
% [p,y,a] = qint(ym1,y0,yp1)
%
% returns the extremum location p, height y, and half-curvature a
% of a parabolic fit through three points.
% Parabola is given by y(x) = a*(x-p)^2+b,
% where y(-1)=ym1, y(0)=y0, y(1)=yp1.
p = (yp1 - ym1)/(2*(2*y0 - yp1 - ym1));
y = y0 - 0.25*(ym1-yp1)*p;
a = 0.5*(ym1 - 2*y0 + yp1);
相关文章
- 01-04Cause: java.sql.SQLException: ORA-12899: 列 “SGWPDM“.“PM_BID_PROJECT_INFO_COPY1“.“BID_TYPE_CODE“ 的值太大
- 01-04jmeter 进行websocket数据帧过大导致code 1009
- 01-04Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined) G - Xor-matic Number of the Graph 线性基好题
- 01-04SAPHANA学习(22):SQL Function(V)
- 01-04leetcode HouseRobber Dp Code
- 01-04Hadoop报错 rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]
- 01-04Zepto Code Rush 2014——Dungeons and Candies
- 01-04MC2D v0.0.6 Source Code
- 01-04passat QA / error code 20190210
- 01-04Visual Studio Code 打开.py代码报Linter pylint is not installed解决办法