|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGglazba.GAPratnja
public class GAPratnja extends java.lang.Object
Contains the genetic operators for the accompanying melodies genetic algorithm
Constructor and Description |
---|
GAPratnja()
|
Modifier and Type | Method and Description |
---|---|
static Pratnja |
krizanjeTockaPrekida(java.util.LinkedList<Pratnja> odabrane)
One-point crossover |
static Pratnja |
krizanjeUniformno(java.util.LinkedList<Pratnja> odabrane)
Uniform crossover |
static Pratnja |
mutacijaPromjeni(Pratnja dijete)
Mutation which changes tones for a half-step or whole-step up or down |
static Pratnja |
mutacijaZamjena(Pratnja dijete)
Mutation which switches places of two neighbouring tones |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GAPratnja()
Method Detail |
---|
public static Pratnja krizanjeTockaPrekida(java.util.LinkedList<Pratnja> odabrane)
odabrane
- List of individuals who where chosen for the crossoverpublic static Pratnja krizanjeUniformno(java.util.LinkedList<Pratnja> odabrane)
odabrane
- List of individuals who where chosen for the crossoverpublic static Pratnja mutacijaZamjena(Pratnja dijete)
dijete
- The individual on which the mutation will be performedpublic static Pratnja mutacijaPromjeni(Pratnja dijete)
dijete
- The individual on which the mutation will be performed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |