Calculates the Bernstein polynomial for a given Bézier curve order, index, and parameter vector. The
Bernstein polynomial is described by
\[B_{i,n}(t)={n \choose i} t^i (1-t)^{n-i}\]
- Parameters:
n (int) – Basis function degree
i (int) – Basis function index
t (int, float, or np.ndarray) – Parameter vector for evaluation
- Returns:
Array of values of the Bernstein polynomial evaluated for each point in the parameter vector
- Return type:
np.ndarray