Skip to content

Commit

Permalink
one liner docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
aelskens committed May 9, 2023
1 parent 572b6f0 commit 560a201
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions pyvfc/pyvfc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,7 @@
namespace py = pybind11;

PYBIND11_MODULE(pyvfc, m) {
py::class_<VFC>(m, "VFC", R"mydelimiter(
Class that implements the VFC algorithm.
:param method: The method for outlier removal. The options are 1 for NORMAL_VFC, 2 for FAST_VFC
and 3 for SPARSE_VFC, defaults to 3.
:type method: int, optional
:param maxIter: The maximum number of iterations, defaults to 500.
:type maxIter: int, optional
:param gamma: Percentage of inliers in the samples. This is an inital value for EM iteration
and is not important, defaults to 0.9.
:type gamma: float, optional
:param beta: Paramerter of Gaussian Kernel, k(x, y) = exp(-beta* || x - y || ^ 2), defaults to 0.1.
:type beta: float, optional
:param lmbda: Represents the trade-off between the goodness of data fit and smoothness of the field, defaults to 3.0.
:type lmbda: float, optional
:param theta: The threshold value that determines whether the sample is an inliner or not. An inliner has a posterior
probability which is superior to theta, defaults to 0.75.
:type theta: float, optional
:param a: Paramerter of the uniform distribution. It is that the outliers obey a uniform distribution 1/a, defaults
to 10.0.
:type a: float, optional
:param ecr: The minimum limitation of the energy change rate in the iteration process, defaults to 1e-5.
:type ecr: float, optional
:param minP: The posterior probability Matrix P may be singular for matrix inversion. The minimum value of P is set
as minP, defaults to 1e-5.
:type minP: float, optional
)mydelimiter")
py::class_<VFC>(m, "VFC", R"mydelimiter(Class that implements the VFC algorithm. \n:param method: The method for outlier removal. The options are 1 for NORMAL_VFC, 2 for FAST_VFC \nand 3 for SPARSE_VFC, defaults to 3. \n:type method: int, optional \n:param maxIter: The maximum number of iterations, defaults to 500. \n:type maxIter: int, optional \n:param gamma: Percentage of inliers in the samples. This is an inital value for EM iteration \nand is not important, defaults to 0.9. \n:type gamma: float, optional \n:param beta: Paramerter of Gaussian Kernel, k(x, y) = exp(-beta* || x - y || ^ 2), defaults to 0.1. \n:type beta: float, optional \n:param lmbda: Represents the trade-off between the goodness of data fit and smoothness of the field, defaults to 3.0. \n:type lmbda: float, optional \n:param theta: The threshold value that determines whether the sample is an inliner or not. An inliner has a posterior \nprobability which is superior to theta, defaults to 0.75. \n:type theta: float, optional \n:param a: Paramerter of the uniform distribution. It is that the outliers obey a uniform distribution 1/a, defaults \nto 10.0. \n:type a: float, optional \n:param ecr: The minimum limitation of the energy change rate in the iteration process, defaults to 1e-5. \n:type ecr: float, optional \n:param minP: The posterior probability Matrix P may be singular for matrix inversion. The minimum value of P is set \nas minP, defaults to 1e-5. \n:type minP: float, optional)mydelimiter")
.def(py::init<int, int, float, float, float, float, float, float, float>(),
py::arg("method") = 3, py::arg("maxIter") = 500, py::arg("gamma") = 0.9f,
py::arg("beta") = 0.1f, py::arg("lmbda") = 3.0f, py::arg("theta") = 0.75f,
Expand Down

0 comments on commit 560a201

Please sign in to comment.