We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ecc2f commit 4682d2dCopy full SHA for 4682d2d
pygem/rbf_factory.py
@@ -77,7 +77,7 @@ def inv_multi_quadratic_biharmonic_spline(X, r=1):
77
return result
78
79
@staticmethod
80
- def thin_plate_spline(X, r=1):
+ def thin_plate_spline(X, r=1, k=2):
81
"""
82
It implements the following formula:
83
@@ -93,7 +93,7 @@ def thin_plate_spline(X, r=1):
93
:rtype: float
94
95
arg = X / r
96
- result = arg * arg
+ result = np.power(arg,k)
97
result = np.where(arg > 0, result * np.log(arg), result)
98
99
0 commit comments