Removed dependence on eoUniform, changed it to use rng.random or rng.uniform directly

This commit is contained in:
mac 2000-06-10 13:22:53 +00:00
commit c1b0a6c503
14 changed files with 446 additions and 313 deletions

View file

@ -26,7 +26,7 @@
#ifndef _EODUP_h
#define _EODUP_h
#include <eoUniform.h>
#include <utils/eoRNG.h>
#include <eoOp.h>
@ -42,9 +42,9 @@ public:
virtual ~eoDup() {};
///
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.insertGene( pos, _eo.gene(pos) );
}