Skip to content

Commit

Permalink
solved conflicts
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:EricMarcon/dbmss

# Conflicts:
#	R/KEnvelope.R
#	R/KdEnvelope.R
#	R/KinhomEnvelope.R
#	R/Smooth.wmppp.R
#	R/gEnvelope.R
#	R/generic.spatstat.R
#	R/rPopulationIndependenceK.R
  • Loading branch information
EricMarcon committed Nov 8, 2024
2 parents 1ee2bd9 + d4f3504 commit 81ec4e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions R/KinhomEnvelope.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ KinhomEnvelope <- function(
SimulationType = "RandomPosition",
Global = FALSE,
verbose = interactive()) {

CheckdbmssArguments()

# Estimate intensity if it has not been provided.
Expand All @@ -25,7 +25,7 @@ KinhomEnvelope <- function(
}

# Choose the null hypothesis
SimulatedPP <- switch(
SimulatedPP <- switch (
SimulationType,
RandomPosition = expression(rpoispp(lambda)),
RandomLocation = expression(rRandomLocation(X, CheckArguments = FALSE)),
Expand Down Expand Up @@ -66,13 +66,15 @@ KinhomEnvelope <- function(
savefuns = TRUE
)
)
attr(Envelope, "einfo")$H0 <- switch(
attr(Envelope, "einfo")$H0 <- switch (
SimulationType,
RandomPosition = "Random Position",
RandomLocation = "Random Location",
RandomLabeling = "Random Labeling",
PopulationIndependence = "Population Independence"
)
# Calculate confidence intervals
Envelope <- FillEnvelope(Envelope, Alpha = Alpha, Global = Global)
# Return the envelope
return (Envelope)
}
}
2 changes: 1 addition & 1 deletion R/Smooth.wmppp.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Smooth.wmppp <- function(
# Smooth the values of the dbm
fvind.matrix <- as.matrix(fvind)
# Extract the values. Columns 1 to 3 contain the global dbm
marks(X) <- fvind.matrix [which(fvind.matrix[, 1] == r_to_plot), -(1:3)]
marks(X) <- fvind.matrix[which(fvind.matrix[, 1] == r_to_plot), -(1:3)]
# Smooth requires the top class of X to be ppp
class(X) <- "ppp"
# Eliminate NA's before smoothing
Expand Down

0 comments on commit 81ec4e3

Please sign in to comment.