MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / vector_add_constant

Function vector_add_constant

src/myFunc.cpp:604–608  ·  view source on GitHub ↗

This function adds the constant value x to the elements of the vector a, a0i = ai + x.

Source from the content-addressed store, hash-verified

602
603//This function adds the constant value x to the elements of the vector a, a0i = ai + x.
604void vector_add_constant(std::vector<float>& a, float const b) {
605 for (int i = 0; i < (int)a.size(); i++) {
606 a[i] += b;
607 }
608}
609//This function evaluate standard diviation supposing that E(a) = b.
610float sd(std::vector<float>& a, float const b) {
611 if (a.size() == 0)

Callers 1

findnextbreakpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected