-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdistance.h
60 lines (45 loc) · 2.04 KB
/
distance.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef DIST_H
#define DIST_H
#include <iostream>
#include <seqan/sequence.h>
#include <seqan/stream.h>
#include <seqan/file.h>
#include <seqan/arg_parse.h>
#include <seqan/seq_io.h>
#include <string>
#include "common.h"
double d2(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double cosine(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double euler(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double bray_curtis_distance(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double normalised_google_distance(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double chebyshev(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double canberra(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double normalised_canberra(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double manhattan(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2);
double d2s(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2,
String<double> const & markovCounts1,
String<double> const & markovCounts2);
double d2star(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2,
String<double> const & markovCounts1,
String<double> const & markovCounts2);
double dai(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2,
String<double> const & markovCounts1,
String<double> const & markovCounts2);
double hao(String<unsigned> const & kmerCounts1,
String<unsigned> const & kmerCounts2,
String<double> const & markovCounts1,
String<double> const & markovCounts2);
#endif