shamrock.external.coala.reconstruction_g.recons_g#
- shamrock.external.coala.reconstruction_g.recons_g(massgrid, massbins, kpol, gij, j, x)#
Function to reconstruct the approximation of g using the components gij and the Legendre polynomial basis
only for DG scheme k>0, piecewise polynomial approximation
Parameters#
- massgrid1D array (dim = nbins+1), type -> float
grid of masses given borders value of mass bins
- massbins1D array (dim = nbins), type -> float
arithmetic mean value of massgrid for each mass bins
- kpolscalar, type -> integer
degree of polynomials for approximation
- gij2D array (dim = (nbins,kpol+1)), type -> float
components of g on the polynomial basis
- jscalar, type -> integer
index of the bin for reconstruction
- xscalar, type -> float
mass value to evaluate the reconstruction of g
Returns#
- resscalar, type -> float
reconstruction of g evaluated at x