| 516 | } |
| 517 | |
| 518 | inline double MBTR::k2WeightExponential(const int &i, const int &j, const vector<vector<double> > &distances, double scale) |
| 519 | { |
| 520 | double dist = distances[i][j]; |
| 521 | double expValue = exp(-scale*dist); |
| 522 | return expValue; |
| 523 | } |
| 524 | |
| 525 | inline double MBTR::k2WeightSquare(const int &i, const int &j, const vector<vector<double> > &distances) |
| 526 | { |
nothing calls this directly
no outgoing calls
no test coverage detected