1\hypertarget{edit__cost_8h_source}{}\doxysection{edit\+\_\+cost.\+h}
2\label{edit__cost_8h_source}\index{ViennaRNA/edit\_cost.h@{ViennaRNA/edit\_cost.h}}
3
4\begin{DoxyCode}{0}
5\DoxyCodeLine{00001 }
6\DoxyCodeLine{00006 \textcolor{preprocessor}{\#define PRIVATE static}}
7\DoxyCodeLine{00007 }
8\DoxyCodeLine{00008 PRIVATE \textcolor{keywordtype}{char}   sep    = \textcolor{charliteral}{':'};}
9\DoxyCodeLine{00009 PRIVATE \textcolor{keywordtype}{char}  *coding = \textcolor{stringliteral}{"{}Null:U:P:H:B:I:M:S:E:R"{}};}
10\DoxyCodeLine{00010 }
11\DoxyCodeLine{00011 \textcolor{preprocessor}{\#define DIST\_INF 10000  }\textcolor{comment}{/* infinity */}\textcolor{preprocessor}{}}
12\DoxyCodeLine{00012 }
13\DoxyCodeLine{00013 \textcolor{keyword}{typedef} \textcolor{keywordtype}{int} CostMatrix[10][10];}
14\DoxyCodeLine{00014 }
15\DoxyCodeLine{00015 PRIVATE CostMatrix *EditCost;  \textcolor{comment}{/* will point to UsualCost or ShapiroCost */}}
16\DoxyCodeLine{00016 }
17\DoxyCodeLine{00017 PRIVATE CostMatrix  UsualCost =}
18\DoxyCodeLine{00018 \{}
19\DoxyCodeLine{00019 }
20\DoxyCodeLine{00020 \textcolor{comment}{/*    Null,       U,        P,        H,        B,        I,        M,        S,        E,        R     */}}
21\DoxyCodeLine{00021 }
22\DoxyCodeLine{00022    \{        0,        1,        2,        2,        2,        2,        2,        1,        1, DIST\_INF\},   \textcolor{comment}{/* Null replaced */}}
23\DoxyCodeLine{00023    \{        1,        0,        1, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* U    replaced */}}
24\DoxyCodeLine{00024    \{        2,        1,        0, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* P    replaced */}}
25\DoxyCodeLine{00025    \{        2, DIST\_INF, DIST\_INF,        0,        2,        2,        2, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* H    replaced */}}
26\DoxyCodeLine{00026    \{        2, DIST\_INF, DIST\_INF,        2,        0,        1,        2, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* B    replaced */}}
27\DoxyCodeLine{00027    \{        2, DIST\_INF, DIST\_INF,        2,        1,        0,        2, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* I    replaced */}}
28\DoxyCodeLine{00028    \{        2, DIST\_INF, DIST\_INF,        2,        2,        2,        0, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* M    replaced */}}
29\DoxyCodeLine{00029    \{        1, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* S    replaced */}}
30\DoxyCodeLine{00030    \{        1, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0, DIST\_INF\},   \textcolor{comment}{/* E    replaced */}}
31\DoxyCodeLine{00031    \{ DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0\},   \textcolor{comment}{/* R    replaced */}}
32\DoxyCodeLine{00032 }
33\DoxyCodeLine{00033 \};}
34\DoxyCodeLine{00034 }
35\DoxyCodeLine{00035 }
36\DoxyCodeLine{00036 PRIVATE CostMatrix ShapiroCost =}
37\DoxyCodeLine{00037 \{}
38\DoxyCodeLine{00038 }
39\DoxyCodeLine{00039 \textcolor{comment}{/*    Null,       U,        P,        H,        B,        I,        M,        S,        E,        R     */}}
40\DoxyCodeLine{00040 }
41\DoxyCodeLine{00041    \{        0,        1,        2,      100,        5,        5,       75,        5,        5, DIST\_INF\},   \textcolor{comment}{/* Null replaced */}}
42\DoxyCodeLine{00042    \{        1,        0,        1, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* U    replaced */}}
43\DoxyCodeLine{00043    \{        2,        1,        0, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* P    replaced */}}
44\DoxyCodeLine{00044    \{      100, DIST\_INF, DIST\_INF,        0,        8,        8,        8, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* H    replaced */}}
45\DoxyCodeLine{00045    \{        5, DIST\_INF, DIST\_INF,        8,        0,        3,        8, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* B    replaced */}}
46\DoxyCodeLine{00046    \{        5, DIST\_INF, DIST\_INF,        8,        3,        0,        8, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* I    replaced */}}
47\DoxyCodeLine{00047    \{       75, DIST\_INF, DIST\_INF,        8,        8,        8,        0, DIST\_INF, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* M    replaced */}}
48\DoxyCodeLine{00048    \{        5, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0, DIST\_INF, DIST\_INF\},   \textcolor{comment}{/* S    replaced */}}
49\DoxyCodeLine{00049    \{        5, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0, DIST\_INF\},   \textcolor{comment}{/* E    replaced */}}
50\DoxyCodeLine{00050    \{ DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF, DIST\_INF,        0\},   \textcolor{comment}{/* R    replaced */}}
51\DoxyCodeLine{00051 }
52\DoxyCodeLine{00052 \};}
53\DoxyCodeLine{00053 }
54
55\end{DoxyCode}
56