-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analyze: add usage example(s) #17
Comments
One possible use case (from https://www.reddit.com/r/haskell/comments/a50xpr/datahaskell_solve_this_small_problem_to_fill_some/ ) The problem Averaged across persons, excluding legal fees, how much money had each person spent by time 6?
It would be extra cool if you provided both an in-memory and a streaming solution. Principles|operations it illustrates Predicate-based indexing|filtering. Merging (called "joining" in SQL). Within- and across-group operations. Sorting. Accumulation (what Data.List calls "scanning"). Projection (both the "last row" and the "mean" operations). Statistics (the "mean" operation). Solution and proposed algorithm (it's possible you don't want to read this) The answer is $4000. That's because by time 6, Bob had bought 1 computer ($1000) and 20 hours of legal work (excluded), while Alice had bought a car ($5000) and two computers ($2000). In total they had spent $8000, so the across-persons average is $4000. One way to compute that would be to:
|
Started addressing this with some generic conversion machinery in #34 |
Currently writing an example, will commit soon |
writtern code! don't know how to pull request however |
@UnkDevE you open a PR starting from the page with your fork, then clicking "Compare" to see your changes in context : then you can press "Create pull request" |
Thanks! made pull request. |
@UnkDevE I was too quick in merging your previous PR; a number of things still needed to be fixed. For the future, could you add your tests to the main test group, so that Travis runs them together and we see if anything is broken? Thanks! |
no problem! will get started on that tomorrow |
Possibly a binary in the app/ folder with an end-to-end workflow. Then we can split back anything good that comes out of this into the main library
The text was updated successfully, but these errors were encountered: