Fix bug in predict_x of line model

This commit is contained in:
Johannes Schönberger
2013-05-01 11:15:09 +02:00
parent 62b25455dc
commit b58f52e40e
+1 -1
View File
@@ -132,7 +132,7 @@ class LineModel(BaseModel):
if params is None:
params = self._params
dist, theta = params
return (dist - y * math.cos(theta)) / math.cos(theta)
return (dist - y * math.sin(theta)) / math.cos(theta)
def predict_y(self, x, params=None):
'''Predict y-coordinates using the estimated model.