@@ -60,7 +60,6 @@ def _factor_generator(n):
60
60
"""
61
61
From a given natural integer, returns the prime factors and their multiplicity
62
62
:param n: Natural integer
63
- :return:
64
63
"""
65
64
p = prime_factors (n )
66
65
factors = {}
@@ -95,7 +94,6 @@ def get_center_of_arc(p1, p2, radius):
95
94
:param p1:
96
95
:param p2:
97
96
:param radius:
98
- :return:
99
97
"""
100
98
dx = p2 [0 ] - p1 [0 ]
101
99
dy = p2 [1 ] - p1 [1 ]
@@ -112,7 +110,6 @@ def get_center_of_arc(p1, p2, radius):
112
110
def get_linearly_independent_vectors (vectors_list ):
113
111
"""
114
112
:param vectors_list:
115
- :return:
116
113
"""
117
114
independent_vectors_list = []
118
115
for vector in vectors_list :
@@ -139,7 +136,6 @@ def scale_and_clamp(xx, edge0, edge1, clamp0, clamp1):
139
136
:param edge1:
140
137
:param clamp0:
141
138
:param clamp1:
142
- :return:
143
139
"""
144
140
return np .clip ((xx - edge0 ) / (edge1 - edge0 ), clamp0 , clamp1 )
145
141
@@ -150,7 +146,6 @@ def normal_cdf_step(xx, mean, scale):
150
146
:param xx:
151
147
:param mean:
152
148
:param scale:
153
- :return:
154
149
"""
155
150
return 0.5 * (1.0 + erf ((xx - mean ) / (np .sqrt (2.0 ) * scale )))
156
151
@@ -167,7 +162,6 @@ def smoothstep(xx, edges=None, inverse=False):
167
162
:param xx:
168
163
:param edges:
169
164
:param inverse:
170
- :return:
171
165
"""
172
166
if edges is None :
173
167
xx_clipped = np .clip (xx , 0.0 , 1.0 )
@@ -183,7 +177,6 @@ def smootherstep(xx, edges=None, inverse=False):
183
177
:param xx:
184
178
:param edges:
185
179
:param inverse:
186
- :return:
187
180
"""
188
181
if edges is None :
189
182
xx_clipped = np .clip (xx , 0.0 , 1.0 )
@@ -199,7 +192,6 @@ def cosinus_step(xx, edges=None, inverse=False):
199
192
:param xx:
200
193
:param edges:
201
194
:param inverse:
202
- :return:
203
195
"""
204
196
if edges is None :
205
197
xx_clipped = np .clip (xx , 0.0 , 1.0 )
@@ -215,7 +207,6 @@ def power3_step(xx, edges=None, inverse=False):
215
207
:param xx:
216
208
:param edges:
217
209
:param inverse:
218
- :return:
219
210
"""
220
211
return smoothstep (xx , edges = edges , inverse = inverse )
221
212
@@ -226,7 +217,6 @@ def powern_parts_step(xx, edges=None, inverse=False, nn=2):
226
217
:param edges:
227
218
:param inverse:
228
219
:param nn:
229
- :return:
230
220
"""
231
221
if edges is None :
232
222
aa = np .power (0.5 , 1.0 - nn )
@@ -268,7 +258,6 @@ def powern_decreasing(xx, edges=None, nn=2):
268
258
:param xx:
269
259
:param edges:
270
260
:param nn:
271
- :return:
272
261
"""
273
262
if edges is None :
274
263
aa = 1.0 / np .power (- 1.0 , nn )
@@ -282,7 +271,6 @@ def power2_decreasing_exp(xx, edges=None, alpha=1.0):
282
271
:param xx:
283
272
:param edges:
284
273
:param alpha:
285
- :return:
286
274
"""
287
275
if edges is None :
288
276
aa = 1.0 / np .power (- 1.0 , 2 )
@@ -301,7 +289,6 @@ def power2_tangent_decreasing(xx, edges=None, prefactor=None):
301
289
:param xx:
302
290
:param edges:
303
291
:param prefactor:
304
- :return:
305
292
"""
306
293
if edges is None :
307
294
aa = 1.0 / np .power (- 1.0 , 2 ) if prefactor is None else prefactor
@@ -316,7 +303,6 @@ def power2_inverse_decreasing(xx, edges=None, prefactor=None):
316
303
:param xx:
317
304
:param edges:
318
305
:param prefactor:
319
- :return:
320
306
"""
321
307
if edges is None :
322
308
aa = 1.0 / np .power (- 1.0 , 2 ) if prefactor is None else prefactor
@@ -331,7 +317,6 @@ def power2_inverse_power2_decreasing(xx, edges=None, prefactor=None):
331
317
:param xx:
332
318
:param edges:
333
319
:param prefactor:
334
- :return:
335
320
"""
336
321
if edges is None :
337
322
aa = 1.0 / np .power (- 1.0 , 2 ) if prefactor is None else prefactor
@@ -350,7 +335,6 @@ def power2_inverse_powern_decreasing(xx, edges=None, prefactor=None, powern=2.0)
350
335
:param edges:
351
336
:param prefactor:
352
337
:param powern:
353
- :return:
354
338
"""
355
339
if edges is None :
356
340
aa = 1.0 / np .power (- 1.0 , 2 ) if prefactor is None else prefactor
0 commit comments