You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function [f_approx,c] = approximate_density(Y,x_j,gamma,alpha,lambda)
%Compute the density estimator given the samples Y, with the corresponding values for x_j,gamma,alpha and lambda
kernel_L2_prod = korKernel(x_j,x_j,gamma.^2,alpha*2); %Inner product of the kernel in l2 is sum over l of (beta_l)^2 * phy_l(x)*phy_l(x') (which means gamma for korobov kernel gamma is squared and alpha is doubled)
%Compute the coefficients c by solving Ac = b where A_jk = <K(x_j,),