Mercurial > forge
changeset 9814:12ce4c56e6d5 octave-forge
ga: add per-function TODO comment about unit tests
author | slackydeb |
---|---|
date | Thu, 22 Mar 2012 01:32:26 +0000 |
parents | 134c27dc5ae3 |
children | 7cf6b2679b3c |
files | main/ga/inst/crossoverscattered.m main/ga/inst/fitscalingrank.m main/ga/inst/gacreationuniform.m main/ga/inst/mutationgaussian.m main/ga/inst/selectionstochunif.m |
diffstat | 5 files changed, 62 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main/ga/inst/crossoverscattered.m Wed Mar 21 22:32:29 2012 +0000 +++ b/main/ga/inst/crossoverscattered.m Thu Mar 22 01:32:26 2012 +0000 @@ -35,3 +35,15 @@ xoverKids(1:n_children, 1:nvars) = \ b .* p1 + (ones (n_children, nvars) - b) .* p2; endfunction + + +## number of input arguments +# TODO + +## number of output arguments +# TODO + +## type of arguments +# TODO + +# TODO
--- a/main/ga/inst/fitscalingrank.m Wed Mar 21 22:32:29 2012 +0000 +++ b/main/ga/inst/fitscalingrank.m Thu Mar 22 01:32:26 2012 +0000 @@ -29,6 +29,17 @@ endfunction +## number of input arguments +# TODO + +## number of output arguments +# TODO + +## type of arguments +# TODO + +# TODO + %!shared scores, nParents, expectation %! scores = rand (20, 1); %! nParents = 32;
--- a/main/ga/inst/gacreationuniform.m Wed Mar 21 22:32:29 2012 +0000 +++ b/main/ga/inst/gacreationuniform.m Thu Mar 22 01:32:26 2012 +0000 @@ -50,4 +50,16 @@ ((ones (options.PopulationSize, 1) * (UB - LB)) .* \ rand (options.PopulationSize, GenomeLength)) + \ (ones (options.PopulationSize, 1) * LB); -endfunction \ No newline at end of file +endfunction + + +## number of input arguments +# TODO + +## number of output arguments +# TODO + +## type of arguments +# TODO + +# TODO
--- a/main/ga/inst/mutationgaussian.m Wed Mar 21 22:32:29 2012 +0000 +++ b/main/ga/inst/mutationgaussian.m Thu Mar 22 01:32:26 2012 +0000 @@ -45,4 +45,16 @@ mutationChildren(1:nc_parents, 1:nvars) = \ thisPopulation(parents(1, 1:nc_parents), 1:nvars) + \ expanded_current_std .* randn (nc_parents, nvars); -endfunction \ No newline at end of file +endfunction + + +## number of input arguments +# TODO + +## number of output arguments +# TODO + +## type of arguments +# TODO + +# TODO
--- a/main/ga/inst/selectionstochunif.m Wed Mar 21 22:32:29 2012 +0000 +++ b/main/ga/inst/selectionstochunif.m Thu Mar 22 01:32:26 2012 +0000 @@ -31,4 +31,16 @@ endwhile parents(1, index_steps) = index_line; endfor -endfunction \ No newline at end of file +endfunction + + +## number of input arguments +# TODO + +## number of output arguments +# TODO + +## type of arguments +# TODO + +# TODO