Debian Codegraph @

src/dr/evomodel/substmodel/SubstitutionProcess.java

raw symbols SCIP
1 /*
2 * SubstitutionProcess.java
3 *
4 * Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package dr.evomodel.substmodel;
27
28 import dr.evolution.datatype.DataType;
29
30 /**
31 * <b>model of sequence substitution (rate matrix)</b>.
32 * provides a convenient interface for the computation of transition probabilities
33 */
34 public interface SubstitutionProcess {
35
36 /**
37 * Get the complete transition probability matrix for the given distance.
38 *
39 * @param distance the time (branch length)
40 * @param matrix an array to store the matrix
41 */
42 void getTransitionProbabilities(double distance, double[] matrix);
43
44 /**
45 * This function returns the Eigen vectors.
46 *
47 * @return the array
48 */
49 EigenDecomposition getEigenDecomposition();
50
51 /**
52 * get the state frequencies
53 *
54 * @return the frequencies
55 */
56 FrequencyModel getFrequencyModel();
57
58 /**
59 * Get the infinitesimal rate matrix
60 *
61 * @return the rates
62 */
63 public void getInfinitesimalMatrix(double[] matrix);
64
65 /**
66 * @return the data type
67 */
68 DataType getDataType();
69
70 /**
71 * @return if substitution model can return complex diagonalizations
72 */
73 boolean canReturnComplexDiagonalization();
74 }