Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  multidimensional data (Barry DeZonia)
   2. Re:  multidimensional data (Francesco Ariis)
   3.   multidimensional data (agander)


----------------------------------------------------------------------

Message: 1
Date: Mon, 22 Apr 2019 16:25:47 -0500
From: Barry DeZonia <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] multidimensional data
Message-ID:
        <cakcvfutxy_r9ftewfvfd_unoxttiprwo0q6sfat1r6m6ku9...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I've played with Haskell on and off for a number of years. I have a
question that isn't directly related to Haskell only but to functional
programming. Sorry if this is off topic.

In Haskell, how would you represent a 5 dimensional data structure of
numeric values? Imagine a dataset with axes x, y, z, channel, and time. Is
there an easy way to represent this in the data that doesn't run into all
kinds of memory limits? How would you map the data to a new state such that
the new state had pixel (1000, 2000, 100, 1, 20) set to 53?

Thanks for any info.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20190422/b4e57354/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 22 Apr 2019 23:47:18 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] multidimensional data
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hello Barry,

On Mon, Apr 22, 2019 at 04:25:47PM -0500, Barry DeZonia wrote:
> In Haskell, how would you represent a 5 dimensional data structure of
> numeric values? Imagine a dataset with axes x, y, z, channel, and time. Is
> there an easy way to represent this in the data that doesn't run into all
> kinds of memory limits? How would you map the data to a new state such that
> the new state had pixel (1000, 2000, 100, 1, 20) set to 53?

Maybe a HashMap[1] or similar structure?

[1] http://hackage.haskell.org/package/unordered-containers-0.2.10.0


------------------------------

Message: 3
Date: Tue, 23 Apr 2019 06:54:53 +0200
From: agander <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners]  multidimensional data
Message-ID:
        <CAHpJ=bduwt+grd5y-1irgjkpmv8uxz+foxbee3r7ubjiejx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Monday, 22 April 2019, Barry DeZonia <[email protected]> wrote:

> I've played with Haskell on and off for a number of years. I have a
> question that isn't directly related to Haskell only but to functional
> programming. Sorry if this is off topic.
>
> In Haskell, how would you represent a 5 dimensional data structure of
> numeric values? Imagine a dataset with axes x, y, z, channel, and time. Is
> there an easy way to represent this in the data that doesn't run into all
> kinds of memory limits? How would you map the data to a new state such that
> the new state had pixel (1000, 2000, 100, 1, 20) set to 53?
>

Maybe a lens [1]

[1] http://hackage.haskell.org/package/lens-tutorial-1.0.
3/docs/Control-Lens-Tutorial.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20190423/be5f0146/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 130, Issue 6
*****************************************

Reply via email to