Fix casting in ransac example.

This commit is contained in:
Stefan van der Walt
2013-07-10 12:45:22 +02:00
parent 8c4b31e28c
commit 89c9b6161d
+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