Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top