Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #109 from adamlilith/horizon
Browse files Browse the repository at this point in the history
Fix error in calculation of Hellinger's I as per erratum to Warren et…
  • Loading branch information
Adam B. Smith authored Nov 24, 2020
2 parents dea3d93 + c2204e1 commit 744607f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions R/compareNiches.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#' @param x2 Numeric. Vector or matrix of predictions from another model.
#' @param method Character vector, indicates type of metric to calculate:
#' \itemize{
#' \item \code{meanDiff}: Mean difference between \code{x1} and \code{x2}
#' \item \code{meanAbsDiff}: Mean absolute difference between \code{x1} and \code{x2} (ie, \code{sum(abs(x1 - x2))})
#' \item \code{rmsd}: Root mean squared difference.
#' \item \code{d}: Schoener's \emph{D}
#' \item \code{i}: Warren's \emph{I}
#' \item \code{esp}: Godsoe's \emph{ESP}
Expand Down
2 changes: 1 addition & 1 deletion R/nicheOverlap.r
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ nicheOverlap <- compiler::cmpfun(function(
freqOcc2 <- x2dens / envDens

# calculate niche overlap statistics
out <- compareNiches(freqOcc1, freqOcc2)
out <- compareNiches(freqOcc1, freqOcc2, method=c('d', 'i', 'esp', 'rho', 'rankCor'))

if (densities) {
out <- list(similarity=out, environDensity=envDens, x1density=x1dens, x2density=x2dens)
Expand Down
3 changes: 0 additions & 3 deletions man/compareNiches.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified zipTarFiles/enmSdm_0.5.3.0.tar.gz
Binary file not shown.
Binary file modified zipTarFiles/enmSdm_0.5.3.0.zip
Binary file not shown.

0 comments on commit 744607f

Please sign in to comment.