edu.udo.cs.yale.operator.features.weighting
Class WeightingMutation

java.lang.Object
  extended by edu.udo.cs.yale.operator.features.IndividualOperator
      extended by edu.udo.cs.yale.operator.features.weighting.WeightingMutation
All Implemented Interfaces:
PopulationOperator

public class WeightingMutation
extends IndividualOperator

Changes the weight for all attributes by multiplying them with a gaussian distribution.

Version:
$Id: WeightingMutation.java,v 1.16 2006/03/27 13:22:00 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  boolean bounded
           
private  java.util.Random random
           
private  double variance
           
 
Constructor Summary
WeightingMutation(double variance, boolean bounded, java.util.Random random)
           
 
Method Summary
 double getVariance()
           
 java.util.List<Individual> operate(Individual individual)
          Subclasses must implement this method providing a list of new individuals.
 void setVariance(double variance)
           
 
Methods inherited from class edu.udo.cs.yale.operator.features.IndividualOperator
operate, performOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variance

private double variance

bounded

private boolean bounded

random

private java.util.Random random
Constructor Detail

WeightingMutation

public WeightingMutation(double variance,
                         boolean bounded,
                         java.util.Random random)
Method Detail

setVariance

public void setVariance(double variance)

getVariance

public double getVariance()

operate

public java.util.List<Individual> operate(Individual individual)
Description copied from class: IndividualOperator
Subclasses must implement this method providing a list of new individuals. individual will be removed from the population so it might be useful to return a list of size 1 containing only the modified individual. If the original individual should also be part of the new population it must also be added to the result list.

Specified by:
operate in class IndividualOperator



Copyright © 2001-2006