From 63577f275c6d06d0b5395f6f7601c4e9f449abd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Mon, 6 May 2013 11:41:08 +0200 Subject: [PATCH] Update doc string of ransac with new validation functions --- skimage/measure/fit.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/skimage/measure/fit.py b/skimage/measure/fit.py index ff2c6420..966009da 100644 --- a/skimage/measure/fit.py +++ b/skimage/measure/fit.py @@ -483,14 +483,15 @@ def ransac(data, model_class, min_samples, residual_threshold, If the model class requires multiple input data arrays (e.g. source and destination coordinates of ``skimage.transform.AffineTransform``), they can be optionally passed as tuple or list. Note, that in this case the - functions `estimate(*data)`, `residuals(*data)` and - `is_degenerate(*data)` must all take each data array as separate - arguments. + functions ``estimate(*data)``, ``residuals(*data)``, + ``is_model_valid(model, *random_data)`` and + ``is_data_valid(*random_data)`` must all take each data array as + separate arguments. model_class : object Object with the following object methods: - * `estimate(*data)` - * `residuals(*data)` + * ``estimate(*data)`` + * ``residuals(*data)`` min_samples : int The minimum number of data points to fit a model.