0

我已经使用EmpiricalDistributionImplApache Commons-Math 库已经有一段时间了,从 2.x 升级到 3.3 我遇到了一些问题。

First off NaNs 似乎load()在这个版本中引起了问题,我很确定它们以前没有问题。那么真正的问题是我从我的 EDI 类中得到了负值,getNextValue()即使我加载的所有值都是严格的正值。具体来说,我的值是 (0, +Inf) 范围内的正比率,如果我绘制它们,它会非常重(例如,90-95% 的值最终会出现在前 3 个垃圾箱中)。

FWIW,我发现了以下两个错误报告,但不确定它们是否完全相关。

它们似乎都已修复并计划在 3.4 版本中发布,但发布日期没有 ETA。

建议?

4

1 回答 1

1

MATH-1132 is unrelated; but MATH-984 likely is related to the data range problem you mention. NaNs should be filtered before data are passed to load, as there is no meaningful way to handle them (without adding support for a NanStrategy, which is not currently supported).

Version 3.4 was just released.

Please open a new ticket if you still have range problems and feel free to open a ticket to get NaNs supported via a NaNStrategy.

于 2015-01-05T04:08:19.873 回答