-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstruct_colocalisation.h
More file actions
30 lines (21 loc) · 895 Bytes
/
construct_colocalisation.h
File metadata and controls
30 lines (21 loc) · 895 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
#ifndef CONSTRUCT_COLOCALISATION_H
#define CONSTRUCT_COLOCALISATION_H
#include <iostream>
#include <Eigen/Dense>
#include <vector>
class construct_colocalisation
{
public:
construct_colocalisation();
//defining functions for colocalization matrix
static Eigen::MatrixXd matrix_distance(Eigen::MatrixXd A);
static Eigen::MatrixXd matrix_linkage(Eigen::MatrixXd &A, double m, double p);
static Eigen::MatrixXd combine_linkage(Eigen::MatrixXd &A_linkage, Eigen::MatrixXd &A_expression);
static Eigen::MatrixXd comparison(Eigen::MatrixXd &expression, Eigen::MatrixXd &neighbors, double a=1, double b=0.5);
static Eigen::MatrixXd enrichment(Eigen::MatrixXd &A);
private:
double distance(double x1, double x2, double y1, double y2);
double max (double a, double b);
double linkage(double d, double m, double p);
};
#endif // CONSTRUCT_COLOCALISATION_H