smal fix
This commit is contained in:
parent
609958bc69
commit
1ede58aef1
@ -12,5 +12,5 @@ namespace Similarity
|
||||
// float needleman_wunsch(Dna *d1, Dna *d2); used for bioinformatics and aligment. Dont need its aligned alredy
|
||||
|
||||
typedef float(simil_func)(Dna *d1, Dna *d2);
|
||||
float calc_similarity(std::vector<Dna> vec, simil_func f);
|
||||
float calc_similarity(std::vector<Dna> &vec, simil_func f);
|
||||
}
|
@ -96,7 +96,7 @@ namespace Similarity
|
||||
return 1 - (ld / sizeof(Dna));
|
||||
}
|
||||
|
||||
float calc_similarity(std::vector<Dna> vec, simil_func f)
|
||||
float calc_similarity(std::vector<Dna> &vec, simil_func f)
|
||||
{
|
||||
size_t num_pairs = (vec.size() * (vec.size() - 1)) / 2;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user