clear all
close all
clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% genera datos %%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% model %%%%%%%%%%%%%%%%
%%%%% theta,t son variables genericas... de una funcion
f=@(theta,t) sin(theta.*t);
%f=@(theta,t) theta.*t;
%sig_r=1; %%% for simplicity we consider the std of the noise known
sig_r=1; %%% for simplicity we consider the std of the noise known
%%%% datos observado %%%%
theta_true=2;
t_datos=0:1:10;
Ndatos=length(t_datos);
y=f(theta_true,t_datos)+sig_r*randn(1,Ndatos);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
sig_p=2;
theta_ev=2;
POST=Evaluate_Post(theta_ev,y,t_datos,f,sig_r,sig_p)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
