DIAlign
constrainMat.h
1 #ifndef CONSTRAINMAT_H
2 #define CONSTRAINMAT_H
3 
4 #include <vector>
5 #include <cmath>
6 #include "utils.h"
7 #include "similarityMatrix.h"
8 
13 namespace DIAlign
14 {
16 namespace ConstrainMatrix
17 {
46 void calcNoBeefMask(SimMatrix& MASK, double A1, double A2, double B1, double B2, double B1p, double B2p, int noBeef, bool hardConstrain);
47 
53 void constrainSimilarity(SimMatrix& s, const SimMatrix& MASK, double constrainVal);
54 } // namespace ConstrainMatrix
55 } // namespace DIAlign
56 
57 #endif // CONSTRAINMAT_H
58 
void calcNoBeefMask(SimMatrix &MASK, double A1, double A2, double B1, double B2, double B1p, double B2p, int noBeef, bool hardConstrain)
Fill a diagonal strip with one through the matrix MASK.
Definition: constrainMat.cpp:13
Generic namespace for all classes and functions of DIAlign.
Definition: affinealignment.cpp:29
void constrainSimilarity(SimMatrix &s, const SimMatrix &MASK, double constrainVal)
Applies the mask from calcNoBeefMask() on the similarity matrix.
Definition: constrainMat.cpp:71