| 72 | return BalanceHeuristic(1, fPdf, 1, gPdf); |
| 73 | } |
| 74 | inline float PowerHeuristic(const u_int nf, const float fPdf, const u_int ng, const float gPdf) { |
| 75 | const float f = nf * fPdf, g = ng * gPdf; |
| 76 | return (f * f) / (f * f + g * g); |
| 77 | } |
| 78 | inline float PowerHeuristic(const float fPdf, const float gPdf) { |
| 79 | return PowerHeuristic(1, fPdf, 1, gPdf); |
| 80 | } |
no outgoing calls
no test coverage detected