Jean Logeart
Jean Logeart

Reputation: 53819

Use of DerivativeStructure in Apache Commons Math

I am having a hard time understanding how to use DerivativeStructure in Apache Commons Math.

I have a Logit function for which I would like to get the first order derivative. Then I would like to get the value of that derivative on multiple distinct values.

Logit logit = new Logit(0.1, 10.0);
DerivativeStructure ds =   // How to instanctiate?
DerivativeStructure dsRes = logit.value(ds);
// How to use dsRes to get the value of the derivative function applied on
// several values?

In addition, if there is any document describing how to use that DerivativeStructure, I am highly interested!

Thanks for your help.

Upvotes: 2

Views: 2798

Answers (1)

Anders Gustafsson
Anders Gustafsson

Reputation: 15971

In the Apache Commons Math User Guide, the section on Numerical analysis Differentiation, there is a reasonable introduction on how to apply the DerivativeStructure.

Upvotes: 3

Related Questions