Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address from edge distance function may not be required #57

Closed
IhsanKhaliq opened this issue Feb 23, 2021 · 0 comments
Closed

Address from edge distance function may not be required #57

IhsanKhaliq opened this issue Feb 23, 2021 · 0 comments
Labels
Not required Does not add a value

Comments

@IhsanKhaliq
Copy link
Owner

Summary unit length and width is 1 square metre, so everything gets divided by one and give some strange numbers

#' Estimates distance conidia travelled from the origin of dispersal
#'
#' 'address_from_edge_distance()' gives information on the possible destination
#' where conidia may land when dispersed by wind driven rain or rain splash
#'
#' @param summary_unit_width is the width of the observation quadrat/cell, thais is 1 square metre
#' @param summary_unit_length is the length of the observation quadrat/cell, that is 1 square metre
#' @param location[1] represents origin of dispersal
#' @param location[2] represents the destination where conidia land
#' @return distance in metres
#'
#' @keywords internal
#' @noRd
address_from_edge_distance <- function (location) {
c(1 + floor(location[1] / summary_unit_width),
1 + floor(location[2] / summary_unit_length))
}

@IhsanKhaliq IhsanKhaliq added the Not required Does not add a value label Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not required Does not add a value
Projects
None yet
Development

No branches or pull requests

1 participant