--- a/doc/python/rips.rst Mon Apr 12 19:01:01 2010 -0700
+++ b/doc/python/rips.rst Tue Apr 13 09:09:04 2010 -0700
@@ -74,7 +74,7 @@
def __len__(self):
return len(self.points)
- def __call__(self, x, y):
+ def __call__(self, p1, p2):
return self.norm([x - y for (x,y) in zip(self.points[p1], self.points[p2])])
Another distances class is available that speeds up the computation of the Rips
@@ -87,7 +87,7 @@
distances = ExplicitDistances(distances)
With :class:`PairwiseDistances` being a C++ class, and
-:class:`ExplicitDistances` being pure Python, the speead-up seems minor.
+:class:`ExplicitDistances` being pure Python, the speed-up seems minor.
Example