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

Function polynomial

src/myFunc.cpp:1381–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379 return 0;
1380}
1381float polynomial(const float x, const double a, const double b, const double c){ //ax^2+bx+c
1382 return float(a*x*x+b*x+c);
1383}
1384float polynomial(const float x, const double * a, double ratio, int degree){
1385 double y = a[degree];
1386 for (int i = 0; i < degree; i++) {

Callers 5

runEMFunction · 0.85
runEMlogFunction · 0.85
calculateRatioLogMethod · 0.85
calculateRatioMethod · 0.85
recalculateRatioMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected