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( ) [source]

Constructor.

  Using
     integral = 4 / π
     fwhm = 4.0 / 3.0

result( x ) [source]
Calculate the function.

Parameters

  • x : array_like
         at which to do the calculation

partial( x ) [source]
Return the partial derivative wrt input values.

Parameters

  • x : array-like
         the input values

isBound( ) [source]

Return True

name( ) [source]

Return the name of the kernel

Methods inherited from Kernel