Skip to content

Commit

Permalink
Upgrade roxygen & Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrechalom committed Mar 14, 2016
1 parent a3f1fce commit 7bf01e0
Show file tree
Hide file tree
Showing 14 changed files with 119 additions and 112 deletions.
27 changes: 14 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
Package: pse
Type: Package
Title: Parameter Space Exploration with Latin Hypercubes
Version: 0.4.4
Date: 2015-10-02
Version: 0.4.5
Date: 2016-03-14
Author: Andre Chalom, Paulo Inacio Knegt Lopez de Prado
Maintainer: Andre Chalom <[email protected]>
Depends:
R (>= 3.0.1),
Hmisc
Depends:
R (>= 3.0.1),
Hmisc
Imports:
utils,
graphics,
stats,
boot,
boot,
parallel
Suggests:
sensitivity,
Suggests:
sensitivity,
mcmc
Description: Functions for creating Latin Hypercubes with
prescribed correlations and performing parameter space exploration.
Also implements the PLUE method.
Based on the package sensitivity, by Gilles Pujol,
Bertrand Iooss & Alexandre Janon.
prescribed correlations and performing parameter space exploration.
Also implements the PLUE method.
Based on the package sensitivity, by Gilles Pujol,
Bertrand Iooss & Alexandre Janon.
License: GPL-3
URL: https://github.com/andrechalom/pse
BugReports: https://github.com/andrechalom/pse
BugReports: https://github.com/andrechalom/pse
RoxygenNote: 5.0.1
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by roxygen2 (4.1.1): do not edit by hand
# Generated by roxygen2: do not edit by hand

S3method(pic,LHS)
S3method(pic,default)
Expand Down
6 changes: 4 additions & 2 deletions R/LHS.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
#' generate a zero-correlation Latin Hypercube.
#' `eps' The tolerance between the prescribed correlation and the actual correlation present in the
#' generated Latin Hypercube.
#' `maxIt' The maximum number of iterations to be run for each factor. The default is set by a heuristic,
#' but it might need some adjustments.
#'@param nboot Number of bootstrap replicates for calculating the PRCC.
#'@param repetitions The number of model repetitions to be run for a single data point. See the vignette on
#' stochastic models for details
Expand Down Expand Up @@ -94,7 +96,7 @@ LHS <-
opts=list(), nboot=0, repetitions=1, cl = NULL) {
# Input validation for common errors and "default" value handling:
method = match.arg(method)
my.opts = list(COR=0, eps=0.0005)
my.opts = list(COR=0, eps=0.0005, maxIt=0)
my.opts[names(opts)] <- opts
if(is.numeric(factors) && length(factors) == 1) factors=paste("I", 1:factors, sep="")
else if (!is.character(factors)) {
Expand All @@ -119,7 +121,7 @@ LHS <-
L[,i] <- sample(do.call(q[[i]], c(list(p = 1:N/N-1/N/2), q.arg[[i]])))
# Corrects the correlation terms, for HL method for LHS
if (method == "HL") {
L <- LHScorcorr(L, COR = my.opts$COR, eps = my.opts$eps);
L <- LHScorcorr(L, COR = my.opts$COR, eps = my.opts$eps, maxIt = my.opts$maxIt);
}
# Runs the actual model
res <- internal.run(cl, model, L, repetitions)
Expand Down
62 changes: 32 additions & 30 deletions man/LHS.Rd

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

12 changes: 6 additions & 6 deletions man/LHScorcorr.Rd

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

24 changes: 12 additions & 12 deletions man/PLUE.Rd

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

24 changes: 12 additions & 12 deletions man/accessors.Rd

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

2 changes: 1 addition & 1 deletion man/cv.Rd

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

2 changes: 1 addition & 1 deletion man/external.Rd

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

22 changes: 11 additions & 11 deletions man/machinefile.Rd

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

Loading

0 comments on commit 7bf01e0

Please sign in to comment.