Skip to content

Commit

Permalink
remove 'return(generator)'
Browse files Browse the repository at this point in the history
  • Loading branch information
surmann committed Dec 7, 2015
1 parent bdb60fc commit 9b660e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions R/generator.random.binary.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ makeBinaryGenerator = function() {
makePopulation(population)
}

generator = makeGenerator(
makeGenerator(
generator = generateBinaryPopulation,
name = "Binary generator",
description = "Samples uniformally distributed 0, 1 values.",
supported = c("binary")
)
return(generator)
}
3 changes: 1 addition & 2 deletions R/generator.random.permutation.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ makePermutationGenerator = function() {
makePopulation(population)
}

generator = makeGenerator(
makeGenerator(
generator = generatePermutationPopulation,
name = "Permutation generator",
description = "Generates random permutations.",
supported = c("permutation")
)
return(generator)
}
4 changes: 1 addition & 3 deletions R/generator.uniform.float.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ makeUniformGenerator = function() {
makePopulation(population)
}

generator = makeGenerator(
makeGenerator(
generator = generateUniformPopulation,
name = "Uniform generator",
description = "Samples uniformally distributed points in the design space.",
supported = "float"
)

return(generator)
}

0 comments on commit 9b660e8

Please sign in to comment.