elephant.test.test_kernels module
Unit tests for the kernels module.
-
class
elephant.test.test_kernels.
kernel_TestCase
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Methods
-
setUp
()[source]
-
test_error_alpha_kernel
(*args, **kwargs)[source]
-
test_error_kernels
()[source]
Test of various error cases in the kernels module.
-
test_kernel_boundary_enclosing
()[source]
Test whether the integral of the kernel with boundary taken from
the return value of the method boundary_enclosing_area_fraction
is (almost) equal to the input variable fraction of
boundary_enclosing_area_fraction.
-
test_kernels_normalization
()[source]
Test that each kernel normalizes to area one.
-
test_kernels_stddev
()[source]
Test that the standard deviation calculated from the kernel (almost)
equals the parameter sigma with which the kernel was constructed.