BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class Uniform( Kernel )Source

Uniform is a Kernel function which is constant between [-1,1].

     K( x ) = 1.0 if |x| < 1
              0.0 elsewhere

Uniform( )

Constructor.

Using
     integral = 2.0
     fwhm = 2.0

result( x )
Return the result for input values.

Parameters

  • x : array-like
         input values

resultsq( xsq )
Return the result for input values. Same as result.

Parameters

  • xsq : 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