ca.cas.montecarlo
Class ExponentialMisrejoiner

java.lang.Object
  extended by ca.cas.montecarlo.Misrejoiner
      extended by ca.cas.montecarlo.ExponentialMisrejoiner

public class ExponentialMisrejoiner
extends Misrejoiner

ExponentialMisrejoiner extends Misrejoiner with the rule that the probability of two free ends joining decays exponentially with the distance between the two free ends in the Geometry


Field Summary
 
Fields inherited from class ca.cas.montecarlo.Misrejoiner
finalEdges, freeEnds, geo, grandSum, graph, probArray, size
 
Constructor Summary
ExponentialMisrejoiner(double decay)
          Constructs an ExponentialMisrejoiner object.
 
Method Summary
protected  void initializeProbArray()
           
protected  void updateProbArray(int i, int j)
           
 
Methods inherited from class ca.cas.montecarlo.Misrejoiner
addEdgesToGraph, arrayIndexToChromosome, arrayIndexToLoc, getAllFinalEdges, getAndAddFinalEdges, initialize, misrejoin, setAbGraph, setGeometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExponentialMisrejoiner

public ExponentialMisrejoiner(double decay)
Constructs an ExponentialMisrejoiner object.

Parameters:
decay - constant for the exponential falloff of probabilities
Method Detail

updateProbArray

protected void updateProbArray(int i,
                               int j)
Specified by:
updateProbArray in class Misrejoiner

initializeProbArray

protected void initializeProbArray()
                            throws java.lang.Exception
Specified by:
initializeProbArray in class Misrejoiner
Throws:
java.lang.Exception