Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the math function in this example? #6

Open
xiaojieguo opened this issue May 25, 2016 · 3 comments
Open

What is the math function in this example? #6

xiaojieguo opened this issue May 25, 2016 · 3 comments

Comments

@xiaojieguo
Copy link

Hi, I want to use LM algorithm in my application.
Could you show me the function in
LMTest.cpp ?

@daviddoria
Copy link
Owner

daviddoria commented May 25, 2016

I'm not sure what you mean - the function f() is defined as:
fx(0) = pow(x(0) - 2, 2) + pow(x(1) - 4, 2);

which is f(x) = (x(0)-2)^2 + (x(1) - 4)^2

@xiaojieguo
Copy link
Author

Thanks. I made a mistake .
But I have another question.
What does the second parameter mean in
vnl_least_squares_function (unsigned int number_of_unknowns, unsigned int number_of_residuals, UseGradient g=use_gradient) ?
Here number_of_residuals >= number_of_unknowns, is it right?
I am confused about number_of_residuals.

@daviddoria
Copy link
Owner

Sorry, you'll have to ask the VNL folks about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants