You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, @wojons -- could you give some examples of why it would be useful? I'm having trouble imagining the use case where something like this would be helpful. Do you have one in mind?
The current sample will grab 100 records using random distrobution. which is great. But if you know something about your data. lets say you have 600 minutes of data and you wanna take 1 minute sample for every 5 minutes of data. for that 300 of that 600 values the method i suggested would allow that. your able to control that its every 5 minutes it will pick one of the values insteed of just total random sample. if someone still wants to just get a random sample in any order they would just use r.sample().limit(60)
Yes, this would be fantastic! (I know it's been like 3 years but I just had to add my support of this motion.) If anyone has time to work on it, I think a lot of us would appreciate it. 😄
Activity
coffeemug commentedon Apr 22, 2014
Hmm, @wojons -- could you give some examples of why it would be useful? I'm having trouble imagining the use case where something like this would be helpful. Do you have one in mind?
wojons commentedon Apr 22, 2014
@coffeemug
The current sample will grab 100 records using random distrobution. which is great. But if you know something about your data. lets say you have 600 minutes of data and you wanna take 1 minute sample for every 5 minutes of data. for that 300 of that 600 values the method i suggested would allow that. your able to control that its every 5 minutes it will pick one of the values insteed of just total random sample. if someone still wants to just get a random sample in any order they would just use r.sample().limit(60)
coffeemug commentedon Apr 22, 2014
Got it, that's really cool. Marking as a reql proposal and putting in subsequent. We'll try to get to it soon.
coffeemug commentedon Jun 7, 2014
Bumping -- talking to @wojons about this now. Also, we'd need a more efficient implementation.
srh commentedon Jun 7, 2014
This would probably be implementable using zip, filter, and r.random, if we had
r.range(...).Unitech commentedon Oct 14, 2014
+2!
pilwon commentedon Dec 11, 2014
+:100:
mbroadst commentedon Jul 1, 2015
I'll second that +:100:
mholt commentedon Feb 9, 2018
Yes, this would be fantastic! (I know it's been like 3 years but I just had to add my support of this motion.) If anyone has time to work on it, I think a lot of us would appreciate it. 😄