TP-traitement-audio-visuel/TP2/bernstein2.m
2023-06-22 20:47:16 +02:00

3 lines
92 B
Mathematica

function value = bernstein2(i, d, x)
value = nchoosek(d, i) .* x.^i .* (1-x).^(d-i);
end