【发布时间】:2013-05-27 11:24:08
【问题描述】:
我很难理解如何在 Apache Commons Math 中使用 DerivativeStructure。
我有一个Logit 函数,我想获得一阶导数。然后我想在多个不同的值上获得该导数的值。
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?
另外,如果有任何文档描述如何使用该 DerivativeStructure,我非常感兴趣!
感谢您的帮助。
【问题讨论】:
-
好吧,我读过它,但它的描述性似乎不足以让我使用它。我尝试了一些东西来测试它,但它仍然不成功。我相信我的用例很简单,无需阅读完整的论文即可找到解决方案。我希望 Javadoc 只提供几个示例,以便新手在阅读后可以自信地使用它。
-
你读过user guide on Numerical Analysis, section 4.7吗?据我所知,它使用
DerivativeStructure很好地介绍了差异化。 -
@AndersGustafsson 太棒了!我自己没有看到它......添加这个作为答案,所以我可以接受它:)
-
很高兴它有帮助,请在下面查看我的回答。