pal.supgma
Class RateHandler.Utils

java.lang.Object
  extended by pal.supgma.RateHandler.Utils
Enclosing interface:
RateHandler

public static final class RateHandler.Utils
extends java.lang.Object


Constructor Summary
RateHandler.Utils()
           
 
Method Summary
static int getArbitaryIntervalCount(double[] intervalChangeTimes, double maxSampleTime)
           
static RateHandler getArbitaryIntervalHandler(double[] times)
           
static RateHandler getOneRatePerIntervalHandler()
           
static RateHandler getSetRateHandler(double rate, int units)
           
static RateHandler getSetRateHandler(MutationRateModel model)
           
static RateHandler getSingleRateHandler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateHandler.Utils

public RateHandler.Utils()
Method Detail

getSingleRateHandler

public static final RateHandler getSingleRateHandler()

getArbitaryIntervalCount

public static final int getArbitaryIntervalCount(double[] intervalChangeTimes,
                                                 double maxSampleTime)
Returns:
the number of intervals given the arbitary intervalChangeTimes (assumed to hold no negative numbers not including zero) and the maxSampleTime

getSetRateHandler

public static final RateHandler getSetRateHandler(double rate,
                                                  int units)

getSetRateHandler

public static final RateHandler getSetRateHandler(MutationRateModel model)

getOneRatePerIntervalHandler

public static final RateHandler getOneRatePerIntervalHandler()

getArbitaryIntervalHandler

public static final RateHandler getArbitaryIntervalHandler(double[] times)