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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top