Skip to content

21 create function data thinning#33

Open
SanderDevisscher wants to merge 14 commits into
mainfrom
21-create-function-data_thinning
Open

21 create function data thinning#33
SanderDevisscher wants to merge 14 commits into
mainfrom
21-create-function-data_thinning

Conversation

@SanderDevisscher

Copy link
Copy Markdown
Collaborator

Fixes #21 by creating a function that allows users to group points within a cutoff from each other and apply a fun like 'sum' on the n_obs. The function returns a sf object with the same structure as the input x only with fewer rows.

To speed up the function a n parameter has been added allowing the user to define the chunk size in which the distance matrix is calculated. This also allows to process species with high no observations. downside would be the distance matrix is only calculated within a chunk and points close to each other but in other chunks are not grouped as such.

@SanderDevisscher SanderDevisscher self-assigned this Aug 13, 2024
@SanderDevisscher SanderDevisscher linked an issue Aug 13, 2024 that may be closed by this pull request
14 tasks
@SanderDevisscher

SanderDevisscher commented Aug 13, 2024

Copy link
Copy Markdown
Collaborator Author

@SanderDevisscher SanderDevisscher marked this pull request as draft August 13, 2024 13:09
@SanderDevisscher

Copy link
Copy Markdown
Collaborator Author

@soriadelva do you think cutoff is sufficient as coordinateUncertainty ? or should it be 2 x cutoff or cutoff + cutoff/2 ?

image

red = input points
blue = grouped point

@SanderDevisscher SanderDevisscher marked this pull request as ready for review August 13, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create function [data_thinning]

1 participant