|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGglazba.Operatori
public class Operatori extends java.lang.Object
Contains the tournament methods for this genetic algorithm
Constructor and Description |
---|
Operatori()
|
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedList<Melodija> |
izaberiNajMelodija(java.util.LinkedList<java.lang.Integer> izabrani,
Melodija[] poljeMelodija)
Selects 2 individuals for the crossover operator and one individual to be replaced by their child (for the main melody) |
static java.util.LinkedList<Pratnja> |
izaberiNajPratnja(java.util.LinkedList<java.lang.Integer> izabrani,
Pratnja[] poljePratnja)
Selects 2 individuals for the crossover operator and one individual to be replaced by their child (for the accompanying melody) |
static java.util.LinkedList<Ritam> |
izaberiNajRitmovi(java.util.LinkedList<java.lang.Integer> izabrani,
Ritam[] poljeRitmova)
Selects 2 individuals for the crossover operator and one individual to be replaced by their child (for the rhythm) |
static java.util.LinkedList<java.lang.Integer> |
turnir(int velicinaTurnira,
int velicinaPopulacije)
Randomly selects individuals for the tournament from the population |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Operatori()
Method Detail |
---|
public static java.util.LinkedList<java.lang.Integer> turnir(int velicinaTurnira, int velicinaPopulacije)
velicinaTurnira
- Tournament sizevelicinaPopulacije
- Population sizepublic static java.util.LinkedList<Ritam> izaberiNajRitmovi(java.util.LinkedList<java.lang.Integer> izabrani, Ritam[] poljeRitmova)
izabrani
- List of individuals chosen for the tournamentpoljeRitmova
- List of the rhythm populationpublic static java.util.LinkedList<Melodija> izaberiNajMelodija(java.util.LinkedList<java.lang.Integer> izabrani, Melodija[] poljeMelodija)
izabrani
- List of individuals chosen for the tournamentpoljeMelodija
- List of the main melody populationpublic static java.util.LinkedList<Pratnja> izaberiNajPratnja(java.util.LinkedList<java.lang.Integer> izabrani, Pratnja[] poljePratnja)
izabrani
- List of individuals chosen for the tournamentpoljePratnja
- List of the accompanying melody population
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |