-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabelMatrix.H
More file actions
32 lines (27 loc) · 863 Bytes
/
LabelMatrix.H
File metadata and controls
32 lines (27 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/****************************************************************
LabelMatrix.H
Copyright (C)2014 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_LabelMatrix_H
#define INCL_LabelMatrix_H
#include <iostream>
#include "BOOM/String.H"
#include "BOOM/Array2D.H"
#include "Labeling.H"
using namespace std;
using namespace BOOM;
class LabelMatrix {
public:
LabelMatrix(){}
LabelMatrix(const String &filename);
void load(const String &filename);
void convertToLogs();
float operator()(GeneModelLabel from,GeneModelLabel to);
void printOn(ostream &) const;
protected:
Array2D<float> M;
};
ostream &operator<<(ostream &,const LabelMatrix &);
#endif