Rename variables for better readability

This commit is contained in:
Johannes Schönberger
2013-02-28 19:14:14 +01:00
committed by Johannes Schönberger
parent 47c3ebac1c
commit a384ca2bef
+4 -4
View File
@@ -373,10 +373,10 @@ class EllipseModel(BaseModel):
def Dfun(t, xi, yi):
xt, yt = self.predict_xy(t)
dfx = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t)
- b * np.sin(theta) * np.cos(t))
dfy = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t)
+ b * np.cos(theta) * np.cos(t))
dfx_t = - 2 * (xi - xt) * (- a * np.cos(theta) * np.sin(t)
- b * np.sin(theta) * np.cos(t))
dfy_t = - 2 * (yi - yt) * (- a * np.sin(theta) * np.sin(t)
+ b * np.cos(theta) * np.cos(t))
return dfx + dfy
residuals = np.empty((N, ), dtype=np.double)