|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGglazba.GAMelodija
public class GAMelodija extends java.lang.Object
Contains the genetic operators for the main melody genetic algorithm
Constructor and Description |
---|
GAMelodija()
|
Modifier and Type | Method and Description |
---|---|
static Melodija |
krizanjeTockaPrekida(java.util.LinkedList<Melodija> odabrane)
One-point crossover |
static Melodija |
krizanjeUniformno(java.util.LinkedList<Melodija> odabrane)
Uniform crossover |
static Melodija |
mutacijaPromjeni(Melodija dijete)
Mutation which changes tones for a half-step or whole-step up or down |
static Melodija |
mutacijaZamjena(Melodija 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 GAMelodija()
Method Detail |
---|
public static Melodija krizanjeTockaPrekida(java.util.LinkedList<Melodija> odabrane)
odabrane
- List of individuals who where chosen for the crossoverpublic static Melodija krizanjeUniformno(java.util.LinkedList<Melodija> odabrane)
odabrane
- List of individuals who where chosen for the crossoverpublic static Melodija mutacijaZamjena(Melodija dijete)
dijete
- The individual on which the mutation will be performedpublic static Melodija mutacijaPromjeni(Melodija 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 |