Tophat

 
Tophat = class Tophat(Kernel)
    Tophat(nconv=0)
 
Tophat is a Kernel function which is 1.0 between [-0.5,0.5]; it is 0 elsewhere.
 
Attributes
----------
nconv : int
    successive autoconvolutions of the tophat. max=6.
 
Thanks to Romke Bontekoe and Mathematica for providing the analytic expressions.
 
 
Method resolution order:
Tophat
Kernel
builtins.object

Constructor:
Tophat( nconv=0)
Constructor.
 
Integral, fwhm and range are dependent on the number of convolutions.
 
Parameters
----------
nconv : int
    number of auto-convolutions
Methods defined here:
isBound()
Return true when the kernel is bound.
All non-zero values are between -1 and +1
name()
Return the name of the kernel.
partial( x )
Return the partial derivative wrt input value.
 
Parameters
----------
x : array-like
    the input value
result( x )
Return the result for one input value.
 
Parameters
----------
x : array-like
    the input value
resultsq( xsq )
Return the result for one input value.
 
Parameters
----------
x : array-like
    the input value
Parameters: x the square of the input value

Methods inherited from Kernel: