Removed dependence on eoUniform, changed it to use rng.random or rng.uniform directly
This commit is contained in:
parent
f39f159924
commit
c1b0a6c503
14 changed files with 446 additions and 313 deletions
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _EOKILL_h
|
||||
#define _EOKILL_h
|
||||
|
||||
#include <eoUniform.h>
|
||||
#include <utils/eoRNG.h>
|
||||
|
||||
#include <eoOp.h>
|
||||
|
||||
|
|
@ -41,9 +41,9 @@ public:
|
|||
virtual ~eoKill() {};
|
||||
|
||||
///
|
||||
virtual void operator()( EOT& _eo ) const {
|
||||
eoUniform<unsigned> uniform( 0, _eo.length() );
|
||||
unsigned pos = uniform( );
|
||||
virtual void operator()( EOT& _eo ) const
|
||||
{
|
||||
unsigned pos = rng.random(_eo.length());
|
||||
_eo.deleteGene( pos );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue