Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Generates population of specified size
- % size - size of the population
- % N - natural numbers from <0 15> representing fenotype
- % V - domain float discreet values from range <-10, 10>
- function [N,V] = generate(size)
- N = randi([0 15],1,size);
- V = naturalToDomain(N);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement