GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Gene

Package | com.suckatmath.machinelearning.genetic.core
Interface | public interface Gene
Implementors | FixedLengthStringGene

It is not necessary to use this interface if you define your own implementations of Genome, however it can be convenient

Public Methods

| Method | Defined By
--- | --- | ---
|  | mutate():Gene return a slight variation of this Gene in a new Gene instance | Gene
|  | newRandom():Gene create and return a new random Gene | Gene

Method Detail

mutate | () | method

`public function mutate():Gene`

return a slight variation of this Gene in a new Gene instance

Returns

| `Gene` — Gene

newRandom | () | method |

`public function newRandom():Gene`

create and return a new random Gene

Returns

| `Gene` — Gene

Thu Jan 16 2014, 01:11 PM +08:00