Hi Ian,
> > define mutate( chom );
>> lvars pos = random( chom_length ); ;;; random = random0 + 1
>> ;;; toggle the pos'th bit.
>> not( testbit( population( chom ), pos ) ) -> testbit(
>> population(
>> chom ), pos )
>> enddefine;
>
>Is that right? It doesn't look like you've updated chom with the new
>number...
>
>Shouldn't it be:
>
>define mutate( chom );
> lvars pos = random( chom_length ); ;;; random = random0 + 1
> lvars bitvec = population(chom);
> ;;; toggle the pos'th bit.
> not(testbit(bitvec, pos )) -> testbit(bitvec, pos) ->
>population(chom);
>enddefine;
Ah, poo. You're right of course. That's what happens when you don't
have a version of Poplog on the same system as you do email.
--
Steve
|