pub fn power_heuristic(nf: u8, f_pdf: Float, ng: u8, g_pdf: Float) -> Float {
    let f: Float = nf as Float * f_pdf;
    let g: Float = ng as Float * g_pdf;
    (f * f) / (f * f + g * g)
}
/// Reducing the variance according to Veach's heuristic.
Reducing the variance according to Veach's heuristic.
Reducing the variance according to Veach ' s heuristic .
pub fn power_heuristic(nf: u8, f_pdf: Float, ng: u8, g_pdf: Float) -> Float {
    let f: Float = nf as Float * f_pdf;
    let g: Float = ng as Float * g_pdf;
    (f * f) / (f * f + g * g)
}
pub fn power_heuristic ( nf : u8 , f_pdf : Float , ng : u8 , g_pdf : Float ) -> Float { let f : Float = nf as Float * f_pdf ; let g : Float = ng as Float * g_pdf ; ( f * f ) / ( f * f + g * g ) }
Reducing the variance according to Veach's heuristic.
Reducing the variance according to Veach ' s heuristic .
nf
u8
f_pdf
Float
ng
u8
g_pdf
Float