Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9142

[C++] random::RandomArrayGenerator::Boolean "probability" misdocumented / incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • C++
    • None

    Description

      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).

      Attachments

        Activity

          People

            wesm Wes McKinney
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: