Talk:Evolutionary algorithm: Difference between revisions

Content added Content deleted
No edit summary
Line 36: Line 36:
NPROG=: 100 NB. number of progeny (C)
NPROG=: 100 NB. number of progeny (C)


create =: (?@$&$ { ])&CHARSET NB. get random list from charset of same length as y
create =: (?@$&$ { ])&CHARSET NB. get random list from charset of same shape as y
fitness =: +/@:~:"1
fitness =: +/@:~:"1
copy =: # ,:
copy =: # ,: