Skip to content
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

Add visualization tool #14

Closed
pgujjula opened this issue May 10, 2024 · 0 comments · Fixed by #18
Closed

Add visualization tool #14

pgujjula opened this issue May 10, 2024 · 0 comments · Fixed by #18

Comments

@pgujjula
Copy link
Owner

pgujjula commented May 10, 2024

Add a visualization tool under Data.List.ApplyMerge.Internal that allows visualizing the pattern of generated elements in a 2-D grid:

-- | @visualize f as bs n r@ takes the parameters for an @applyMerge@ and displays what a @n@ x @n@
--   grid with a proportion @r@ of elements already generated looks like.
--
-- >>> visualize (+) [1..] [1..] 10 0.5
-- . . . . . . . . . *
-- . . . . . . . . * *
-- . . . . . . . * * *
-- . . . . . . * * * *
-- . . . . . * * * * *
-- . . . . . * * * * *
-- . . . . * * * * * *
-- . . . * * * * * * *
-- . . * * * * * * * *
-- . * * * * * * * * *
visualize :: (Ord c) => (a -> b -> c) -> [a] -> [b] -> Int -> Double -> IO ()
pgujjula added a commit that referenced this issue May 10, 2024
pgujjula added a commit that referenced this issue May 10, 2024
pgujjula added a commit that referenced this issue May 10, 2024
pgujjula added a commit that referenced this issue May 10, 2024
pgujjula added a commit that referenced this issue May 10, 2024
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue May 15, 2024
@pgujjula pgujjula linked a pull request May 15, 2024 that will close this issue
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue May 15, 2024
pgujjula added a commit that referenced this issue Dec 11, 2024
pgujjula added a commit that referenced this issue Dec 11, 2024
pgujjula added a commit that referenced this issue Dec 12, 2024
pgujjula added a commit that referenced this issue Dec 12, 2024
pgujjula added a commit that referenced this issue Dec 12, 2024
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 a pull request may close this issue.

1 participant