10 lines
259 B
Matlab
10 lines
259 B
Matlab
function erreur = erreur_apprentissage(D_app, beta_0, beta_d, d)
|
|
X = D_app(1, :)';
|
|
Y = D_app(2, :)';
|
|
|
|
beta = moindres_carres(D_app, beta_0, beta_d, d);
|
|
estimation = bezier(beta_0, beta, beta_d, X);
|
|
|
|
erreur = mean((estimation - Y).^2);
|
|
end
|