Skip to content
Snippets Groups Projects
  1. Mar 15, 2021
  2. Mar 29, 2018
    • philippe.verley_ird.fr's avatar
      Deleted transpose function in utils.R since the C function is absent from... · 9e3b1b5d
      philippe.verley_ird.fr authored
      Deleted transpose function in utils.R since the C function is absent from utils.c. Deleted it as well from internal.Rd
      Deleted utils.c and moved function triangulate to triangulate.c
      Renamed C function triangulate into c_triangulate and updated triangulate.R
      Added new file init.c to declare C and Fortran functions as recommanded by outputs of tools::package_native_routine_registration_skeleton(".")
      Updated NAMESPACE "useDynLib(ads, .registration=TRUE)" as recommanded for R >= 3.4
      Updated MD5
      
      9e3b1b5d
    • philippe.verley_ird.fr's avatar
      In src/*.h cosmetic changes to declare the same way all functions. In fads.R... · 2f2ebbb7
      philippe.verley_ird.fr authored
      In src/*.h cosmetic changes to declare the same way all functions. In fads.R there was a wrong call to ripley_tr_disq_ic instead of coor_tr_disq_ic. Deleted comments en plot.vads.R that were problematic according to devtools:check() function. Updated DESCRIPTION, NAMESPACE and MD5 files
      2f2ebbb7
  3. Mar 27, 2018
  4. Sep 07, 2016
    • philippe.verley_ird.fr's avatar
      This commit adds a new option to the ads::mimetic function: the user may... · f616d2d3
      philippe.verley_ird.fr authored
      This commit adds a new option to the ads::mimetic function: the user may provide a raster in the arguments for defining a mask. 
      mimetic(..., mask=NULL)
      mask must either inherit from RasterStack or RasterLayer at the moment (we might change this in future commit). Every non NA values are considered as allowed values for positioning new points.
      It only works for rectangular windows without triangle at the moment (we will extend the option to other window type in future commits).
      
      In the C sources, I updated the functions mimetic_rect(), exchange_point_rect() and created a new function s_alea_rect_mask based on s_alea_rect. The main differences is that instead of 
      generating new points anywhere within the sampling window, it only generates points within the raster limits inside the sampling window.
      The precision parameter might not be implemented properly for the masked point process, it should be double checked.
      The updated functions take the additional arguments nmask, xmask, ymask, dx and dy:
      nmask: number of non-NA points of the raster
      xmask: x-coordinates of the non-NA points in the raster
      ymask: y-ccordinates of the non-NA points in the raster
      dx: dimension of one raster cell along the x-axis
      dy: dimension of one raster cell along the y-axis
      
      The ads::mimetic function does not check whether the spatial point pattern and the raster are consistent in terms of CRS. It assumes at the moment that they are expressed in the same CRS. The function gets rid of any point from the raster that are outside the rectangular sampling window.
      
      
      
      f616d2d3
  5. Sep 06, 2016
  6. Aug 01, 2016
    • philippe.verley_ird.fr's avatar
      (Zlibs.c) · 35496909
      philippe.verley_ird.fr authored
      Updated all the mimetic_* functions to handle properly spatial point patterns with negative coordinates.
      35496909
  7. Jul 07, 2016
Loading