This is an important release!
When using ESC-NKDE with bandwidths selection, negative density values could be obtained (with a small parameter of depth). It led to NAN values in LOO score. They are now treated as zeros.
A small bug has been corrected in the functions network_knn and network_knn.mc caused with grids with very few number of points.
Corrected the bug presented in issue 19.
This is only a maintenance release. A bug in CRAN caused by multiprocessing in example caused the rejection of the package. All the test and examples are now using only one worker.
Corrected an error in the way the border correction was calculated for the TNKDE
Corrected a minor bug in the functions network_listw.mc and network_listw
The new version of sf created an error because of a bad use of the argument by_element in the function st_distance. It is corrected and tested now.
A bug occuring when splitting the data with a spatial grid has been corrected.
data
It is possible now to choose between two strategies to deal with density at 0 when calculating LOO likelihood for several bandwidths. For more details, see the parameter zero_strat in the functions bw_cvl_calc, bw_cvl_calc.mc, bw_cv_likelihood_calc, bw_cv_likelihood_calc.mc, bws_tnkde_cv_likelihood_calc and bws_tnkde_cv_likelihood_calc.mc.
It is possible now to set directly the size of local bandwidths for the functions nkde, nkde.mc, tnkde and tnkde.mc. This feature is currently experimental, please submit an issue if you encounter a bug.
One can now use the identity matrix type for neighbour weighting (network_listw). It is useful if one wants to apply different function to calculate the weights and to compare the results.
Adaptive bandwidth for TNKDE can now be calculated separately or simultaneously. For more details, see the parameter adaptive_separate.
The vignette Details about NKDE" has been removed from the package because it could not be knitted on some CRAN machines. It is still accessible on the website.
A new vignette K-nearest neighbour adaptive bandwidth has also be added to the website. It presents how spNetwork can use user defined local bandwidths.
An error was raised when points were sharing the exact same locations in the function network_knn. It has been corrected an a warning was added to clarify the situation.
A clearer error message is now raised when multiple geometries are passed to the nkde and nkde.mc functions.
When using the discontinuous NKDE, NA values were returned if an event was located exactly at the extremity of an edge with no connexions. This has been corrected.
Minor release to fix a bug on SOLARIS for CRAN
Several vignettes were added to present the new features. A pkgdown website was also built to give a more attractive way to browse the documentation.
We follow now the code coverage. We want to reach 70% coverage before the next CRAN release.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.