Skip to content

Commit 966b404

Browse files
committed
Documentation update
1 parent 8c141ae commit 966b404

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygem/rbf_factory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ def thin_plate_spline(X, r=1, k=2):
8888
8989
:param numpy.ndarray X: the norm x in the formula above.
9090
:param float r: the parameter r in the formula above.
91+
:param float k: the parameter k in the formula above.
9192
93+
With k=2 the function is "radius free", that means independent of radius value.
9294
9395
:return: result: the result of the formula above.
94-
:rtype: float
95-
96-
With k=2 the function is "radius free", that means independent of radius value.
96+
:rtype: float
9797
"""
9898
arg = X / r
99-
result = np.power(arg,k)
99+
result = np.power(arg, k)
100100
result = np.where(arg > 0, result * np.log(arg), result)
101101
return result
102102

0 commit comments

Comments
 (0)