平滑
平滑是一种减少数据集中噪声的方法。Curve Fitting Toolbox™ 允许您使用移动平均值、萨维茨基-戈雷滤波器和 Lowess 模型等方法或通过拟合平滑样条来对数据进行平滑处理。
使用曲线拟合器或在命令行中使用 smooth
函数以交互方式对数据进行平滑处理。有关如何对数据进行平滑处理的示例,请参阅Fit Smooth Surfaces to Investigate Fuel Efficiency。
App
曲线拟合器 | 对数据进行曲线和曲面拟合 |
函数
datastats | Data statistics |
excludedata | Exclude data from fit |
fit | 对数据进行曲线或曲面拟合 |
fittype | Fit type for curve and surface fitting |
fitoptions | Create or modify fit options object |
get | Get fit options structure property names and values |
set | Assign values in fit options structure |
smooth | 平滑响应数据 |
prepareCurveData | Prepare data inputs for curve fitting |
prepareSurfaceData | Prepare data inputs for surface fitting |
主题
- Smoothing Splines
Fit smoothing splines in the Curve Fitter app or with the
fit
function to create a smooth curve through data and specify the smoothness. - Lowess Smoothing
Fit smooth surfaces to your data in the Curve Fitter app or with the
fit
function using Lowess models. - Filtering and Smoothing Data
Use the
smooth
function to smooth response data, using methods for moving average, Savitzky-Golay filters, and local regression with and without weights and robustness (lowess
,loess
,rlowess
andrloess
). - Fit Smooth Surfaces to Investigate Fuel Efficiency
This example shows how to use Curve Fitting Toolbox™ to fit a response surface to some automotive data to investigate fuel efficiency.
- Nonparametric Fitting
Perform nonparametric fitting to create smooth curves or surfaces through your data with interpolants and smoothing splines.