MCPcopy Create free account
hub / github.com/FidoProject/Fido / normalize

Method normalize

src/LSInterpolator.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84double LSInterpolator::normalize(const std::vector<Wire> &wires, const std::vector<double> &action, double maxReward) {
85 double answer = 0;
86 for(std::vector<Wire>::const_iterator a = wires.begin(); a != wires.end(); ++a) {
87 answer += 1.0 / distanceBetweenWireAndAction(*a, action, maxReward);
88 }
89
90 return answer;
91}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected