pal.substmodel
Class RateMatrixUtils

java.lang.Object
  extended by pal.substmodel.RateMatrixUtils

public class RateMatrixUtils
extends java.lang.Object

Version:
$Id: RateMatrixUtils.java,v 1.2 2001/07/13 14:39:13 korbinian Exp $
Author:
Korbinian Strimmer, Alexei Drummond, Matthew Goode

Constructor Summary
RateMatrixUtils()
           
 
Method Summary
static RateMatrix[] getCopy(RateMatrix[] toCopy)
           
static RateMatrix getInstance(int typeID, int modelID, double[] params, double[] freq)
          Create rate matrix given model and data type codes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RateMatrixUtils

public RateMatrixUtils()
Method Detail

getInstance

public static RateMatrix getInstance(int typeID,
                                     int modelID,
                                     double[] params,
                                     double[] freq)
Create rate matrix given model and data type codes

Parameters:
typeID - code for data type
modelID - code for model of substitution
params - model parameters
freq - model frequencies
Returns:
rate matrix

getCopy

public static final RateMatrix[] getCopy(RateMatrix[] toCopy)