Tuesday, September 23, 2008

Maths: Binormial Co-efficient

Binormial co-efficient

(ni) = n! / i!(n-i)!

Binormial theorem

(x + y)n = ∑ni=0 (ni) xi yn-i

in relation to FFD:

conventional polynomial basis: 1 t t2 t3
Bernstein polynomial basis: (1-t)3 3(1-t)2t 3(1-t)t2 t3


1-D example (real line)


given an arbitrary point, v, on a line of P0, P1, P2, P3.

P0=0
P1=1
P2=2
P3=3

v is given as x. t is given as the length of v to P0 divided by P3 to P0.

in general mathematical terms:

v = ∑ 3i=0 P i W i (t)



W = weight = scalar = constant

in this context:

t= ||v P0|| / ||P3 P0|| = x/3

∴ using dot product:

v = 1 • W1(t) + 2 • W2(t) + 3 • W3(t)

(P0 is ignored because P0=0; where the multiplication will results in 0)

= (31)t1 (1-t2) + 2 • (32)t2(1-t) + 3 • (33)t3

= 3t (1-t2) + 6 t2(1-t) + 3 t3

=3t [ (1-t)2 + 2t(1-t) + t2 ]

=3t [ (1-t) + t ] 2 = 3t = x

No comments: