MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / k2WeightExponential

Method k2WeightExponential

dscribe/ext/mbtr.cpp:518–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518inline 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
525inline double MBTR::k2WeightSquare(const int &i, const int &j, const vector<vector<double> > &distances)
526{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected