MCPcopy Create free account
hub / github.com/Stream-AD/MIDAS / ComputeScore

Method ComputeScore

src/NormalCore.hpp:38–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 static float ComputeScore(float a, float s, float t) {
39 return s == 0 || t - 1 == 0 ? 0 : pow((a - s / t) * t, 2) / (s * (t - 1));
40 }
41
42 float operator()(int source, int destination, int timestamp) {
43 if (this->timestamp < timestamp) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected