Skip to content

Commit fbed1f7

Browse files
mariomario
authored andcommitted
renamed auxiliary -> gadgets
1 parent b53f066 commit fbed1f7

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

code/python/cni_toolbox/auxiliary.py renamed to code/python/cni_toolbox/gadgets.py

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
1717
You should have received a copy of the GNU Lesser General Public License
1818
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
20+
-----------------------------------------------------------------------------
21+
DESCRPTION
22+
23+
This module contains functions either to be used in conjunction with
24+
the core tools of the CNI toolbox; or to be used by the tools but
25+
without being clearly assignable to one specific tool.
26+
1927
'''
2028

2129
import numpy as np
@@ -40,27 +48,6 @@ def two_gamma(timepoints):
4048

4149
return hrf
4250

43-
def gaussian(mu_x, mu_y, sigma, x, y):
44-
'''
45-
Parameters
46-
----------
47-
mu_x : float
48-
center of Gaussian along x direction
49-
mu_y : float
50-
center of Gaussian along x direction
51-
sigma : float
52-
size of Gaussian
53-
x : floating point array (1D)
54-
x-coordinates
55-
y : floating point array (1)
56-
y-coordinates
57-
58-
Returns
59-
-------
60-
floating point array
61-
62-
'''
63-
return np.exp( -((x - mu_x)**2 + (y - mu_y)**2) / (2 * sigma**2) )
6451

6552
def regress(Y, X):
6653
'''
@@ -129,4 +116,5 @@ def size(X, num_desired):
129116
output = np.ones(num_desired).astype(int)
130117
output[0:num_existing] = np.shape(X)
131118
return output
119+
132120

0 commit comments

Comments
 (0)