Gglazba
Class GARitam

java.lang.Object
  extended by Gglazba.GARitam

public class GARitam
extends java.lang.Object

Contains the genetic operators for the rhythm genetic algorithm


Constructor Summary
Constructor and Description
GARitam()
           
 
Method Summary
Modifier and Type Method and Description
static Ritam krizanjeTockaPrekida(java.util.LinkedList<Ritam> odabrane)
          One-point crossover
static Ritam mutacijaRitma(Ritam dijete)
          Mutation which combines note lengths into longer, or splits them into shorter ones
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GARitam

public GARitam()
Method Detail

krizanjeTockaPrekida

public static Ritam krizanjeTockaPrekida(java.util.LinkedList<Ritam> odabrane)
One-point crossover

Parameters:
odabrane - List of individuals who where chosen for the crossover
Returns:
The new individual created in the crossover

mutacijaRitma

public static Ritam mutacijaRitma(Ritam dijete)
Mutation which combines note lengths into longer, or splits them into shorter ones

Parameters:
dijete - The individual on which the mutation will be performed
Returns:
The mutated individual