TP-traitement-audio-visuel/TP2/bernstein2.m

3 lines
92 B
Mathematica
Raw Normal View History

2023-06-22 18:47:16 +00:00
function value = bernstein2(i, d, x)
value = nchoosek(d, i) .* x.^i .* (1-x).^(d-i);
end