Merge pull request #648 from stefanv/ransac_faulty_cast

Fix casting in ransac example.
This commit is contained in:
Johannes Schönberger
2013-07-10 04:33:23 -07:00
+1 -1
View File
@@ -21,7 +21,7 @@ y = 0.2 * x + 20
data = np.column_stack([x, y])
# add faulty data
faulty = np.array(30 * [(180, -100)])
faulty = np.array(30 * [(180., -100)])
faulty += 5 * np.random.normal(size=faulty.shape)
data[:faulty.shape[0]] = faulty