grasshopper2 Rhinorhino3d.com
ComponentAuto-generatedData
Cull By Probability
00000000-5049-4416-be04-ab5c69dc7062
object preview
This page was generated from the component’s built-in descriptions. An in-depth article has not been written for it yet.

Remove items from a list probabilistically.

Input parameters:

  1. Li → List whose items to cull.
  2. Pr → Probability function between zero (definitely keep) and one (definitely cull). The function is evaluated at the list's indices to yield per-item probabilities.
  3. Rn → Random engine used for culling.

Output parameters:

  1. Li → List without the culled items.
  2. Cp → The applied culling pattern.