BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class Cosine( Kernel )Source

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

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

Cosine( )

Constructor.

  Using
     integral = 4 / π
     fwhm = 4.0 / 3.0

result( x )
Calculate the function.

Parameters

  • x : array_like
         at which to do the calculation

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

Parameters

  • x : array-like
         the input values

isBound( )

Return True

name( )

Return the name of the kernel

Methods inherited from Kernel