Jump to content

Recommended Posts

Posted

Hi

 

in my previous topic we reached to a conclusion that I need to find the minimum value of the following function .

 

[math]

cost(a, b, c) = \Sigma_i (y_i - a x_i^b - c)^2

[/math]

 

 

"yi" and "xi" are the result of a complicated analysis on my lab data and I need to find a,b,c in a way that COST(a,b,c) function be minimum.

I know its simple to use mathematical softwares like matlab or mathematica. but I have to develop my program with c++ so I need to know the algorithm of this process.

 

can you help me with that ? I would be appreciated ;)

Posted (edited)

I suggest maybe calling the matlab engine from c++ if it is as you say difficult for you to come up with the algorithms yourself. There are also math libraries for c++ find the one that suits your needs. It can make things difficult if you are not prepared to learn the entirety of the maths before you start.

Edited by Xittenn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.