Skip to content

Feature random array slice#10

Merged
nvzqz merged 2 commits intonvzqz:masterfrom
phimage:feature-random_array_slice
Nov 18, 2015
Merged

Feature random array slice#10
nvzqz merged 2 commits intonvzqz:masterfrom
phimage:feature-random_array_slice

Conversation

@phimage
Copy link
Collaborator

@phimage phimage commented Nov 17, 2015

Add randomSlice to Array to select randomly X elements
One method with array of weights

maybe too much academic with algo from https://en.wikipedia.org/wiki/Reservoir_sampling

maybe we can add randomSlice with weights function for Dictionary< _ , Double>

add missing Int test

nvzqz added a commit that referenced this pull request Nov 18, 2015
@nvzqz nvzqz merged commit 0023a76 into nvzqz:master Nov 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants