User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Math - Signals - 1D - Array1dC<DataT> GenerateBinomial(DataT seed,SizeT size,bool doNorm = false,bool center = false)
 

   Array1dC<DataT> GenerateBinomial(DataT seed,SizeT size,bool doNorm = false,bool center = false)    
 
Creates an array of binomial coefficients
 
include "Ravl/GenerateSignal1d.hh"
User Level:Normal
Library:RavlMath
In Scope:RavlN

(i.e. row "size" from Pascal's triangle).
E.g. Binomial(5) would create the array: 1,4,6,4,1.
Can be used as a finite approximation of a Gaussian. The "variance" of this Gaussian is (size-1)/4.
The 'seed' should be set to a unit value of the same type as the array element required. If Norm = true, the array is normalised so that the sum of the terms = 1.
Maintainer:Bill Chrismas, Documentation by CxxDoc: Tue Aug 13 10:00:21 2002