You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/06/18 00:36:00 UTC
[jira] [Resolved] (ARROW-9142) [C++]
random::RandomArrayGenerator::Boolean "probability" misdocumented /
incorrect
[ https://issues.apache.org/jira/browse/ARROW-9142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney resolved ARROW-9142.
---------------------------------
Resolution: Fixed
I did this in https://github.com/apache/arrow/commit/d0f3b5f3c74f67c7ca941c98bd60148e9a9e94f0
> [C++] random::RandomArrayGenerator::Boolean "probability" misdocumented / incorrect
> -----------------------------------------------------------------------------------
>
> Key: ARROW-9142
> URL: https://issues.apache.org/jira/browse/ARROW-9142
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Wes McKinney
> Assignee: Wes McKinney
> Priority: Major
> Fix For: 1.0.0
>
>
> I would expect {{rng.Boolean(length, 0.99)}} to generate an array that is 99% "true" on average.
> The docs say "/// \param[in] probability the estimated number of active bits", but this is not what the function does (the opposite, actually).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)