Skip to content

Commit f443100

Browse files
authored
use input names
1 parent d2a645a commit f443100

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/doe/Morris.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ Morris <- function(options) {
2222
getInitialDesign <- function(algorithm, input, output) {
2323
algorithm$input <- input
2424
algorithm$output <- output
25-
d = length(input)
2625
set.seed(algorithm$seed)
27-
algorithm$m <- morris(model = NULL, factors = d, r = algorithm$r,
26+
algorithm$m <- morris(model = NULL, factors = names(input), r = algorithm$r,
2827
design = list(type = "oat", levels = algorithm$levels))
2928
names(algorithm$m$X) <- names(input)
3029
return(from01(algorithm$m$X,input))

0 commit comments

Comments
 (0)