BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class CosSquare( Kernel )Source

CosSquare (Cosine Squared) is a Kernel function between [-1,1]; it is 0 elsewhere.

     K( x ) = cos2( 0.5 π x ) if |x| < 1 else 0

CosSquare( )

Constructor.

Using
     integral = 1.0
     fwhm = 1.0

result( x )
Return the result for input values.

Parameters

  • x : array-like
         input values

partial( x )
Return the partial derivative wrt the input values.

Parameters

  • x : array-like
         the input values

isBound( )

Return True

name( )

Return the name of the kernel

Methods inherited from Kernel