Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New method for likelihood utilizing KDE * Added necessary support to compute the galaxy wl likelihood using KDE. Fixed leak in nc_galaxy_wl. * Cut galaxies with e,g < 0, e,g > 0.05 * First working version of the KDE likelihood for WL. * Fixed behavior for g_i < 0 * Better control of the border in the galaxy KDE. * Renamed reduced shear to ellipticity to focus on the true weak lensing observable. Created new object class nc_galaxy_wl_ellipticity_kde and moved calculations from nc_galxy_wl to nc_galaxy_wl_ellipticity_kde. Introduced new method nc_galaxy_wl_dist_m2lnP_initial_prep. Edited Makefile.am, Makefile.in, ncm_cfg.c and numcosmo.h to accomodate changes. Changes have made calculations slower but results seem to be in line with previous version. * Freeing s_kde and g_vec on _nc_galaxy_wl_dist_initial_prep seems to have fixed memory leak (?) issue on last commit * Fix's fix. Freeing the memory allocated to s_kde and g_vec is what was initially causing the segmentation fault. * Fixed indentation. * Removed comments and added doc. * Reorganizing internal of nc_galaxy_wl_ellipticity_kde. Indentation on other related objects. * Fixed email and unnecessary variable. * Fixed object names on docs. * Fixed numcosmo/lss/nc_galaxy_wl_ellipticity_kde.c bug. When resetting self->kde, epdf_bw_type stayed as FIXED instead of being recast as RoT. * First attempt at creating binned object for wl likelihood. Currently working on creating a NcmObjArray with the galaxy data belonging to each bin. Probably (certainly) very buggy. * First version of unit test for nc_galaxy_wl_ellipticity_kde. * Added lss/nc_galaxy_wl_ellipticity_kde to numcosmo.h and math/ncm_cfg.c * Removed old code necessary for debugging. * Fixed copyright notice, fixed reset of self->e_vec, added peek_kde and peek_e_vec methods. * Fixed file name when adding tests, fixed nc_distance_comoving error by preparing dist object, reduced number of tests. * Registered new object NcGalaxyWLEllipticityBinned * Changed approach to binning, fixed set_bin_obs, object is now compiling * Finished binned weak lensing object prototype * Started implementation of unit test for wl_ellipticity_binned, setting gebin->binobs as NcmObjArray on initialization. * Fixed binning behaviour. Bug was caused by casting bin limits as an int instead of a float. Tests are all passing now. * Update nc_galaxy_wl.c * Fixed copyright notices --------- Co-authored-by: Sandro Dias Pinto Vitenti <vitenti@uel.br> Co-authored-by: Caio Lima de Oliveira <caiolimadeoliveira@proton.me>
- Loading branch information