This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/regression/exercises/expdecaymse.m

11 lines
326 B
Matlab

function mse = expdecaymse(t, x, tau)
% Mean squared error for a decaying exponential.
%
% Arguments: t, vector of time points.
% x, vector of the corresponding measured data values.
% tau, value for the time constant.
%
% Returns: mse: mean squared error
mse = mean((x - expdecay(t, tau)).^2);
end