Skip to content

Commit

Permalink
sratmax was made even too strict: relax a bit
Browse files Browse the repository at this point in the history
Stricter sratmax may be useful, but too strict makes monoMDS work
so close to computer's numerical precision that results (vegan
examples) become dependent on computer platform and its details.
  • Loading branch information
jarioksa committed May 13, 2020
1 parent 7ca71d1 commit 8f5f78e
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 193 deletions.
2 changes: 1 addition & 1 deletion R/monoMDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
model = c("global", "local", "linear", "hybrid"),
threshold = 0.8, maxit = 200, weakties = TRUE, stress = 1,
scaling = TRUE, pc = TRUE, smin = 1e-4, sfgrmin = 1e-7,
sratmax=0.9999999, ...)
sratmax=0.999999, ...)
{
## Check that 'dist' are distances or a symmetric square matrix
if (!(inherits(dist, "dist") ||
Expand Down
2 changes: 1 addition & 1 deletion man/monoMDS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
monoMDS(dist, y, k = 2, model = c("global", "local", "linear", "hybrid"),
threshold = 0.8, maxit = 200, weakties = TRUE, stress = 1,
scaling = TRUE, pc = TRUE, smin = 1e-4, sfgrmin = 1e-7,
sratmax=0.9999999, ...)
sratmax=0.999999, ...)
\method{scores}{monoMDS}(x, choices = NA, ...)
\method{plot}{monoMDS}(x, choices = c(1,2), type = "t", ...)
\method{points}{monoMDS}(x, choices = c(1,2), select, ...)
Expand Down
Loading

0 comments on commit 8f5f78e

Please sign in to comment.