及时使用和分析集合数据的方法

发布于 2024-08-19 02:42:23 字数 509 浏览 3 评论 0原文

我正在为画廊设计一个交互式装置,在那里我将收到输入,告诉我 8 个输入传感器中的哪一个已被桥接。例如,如果有人触摸 1 号条带,我将能够检测到。为了方便起见,我们将其记为 {1}。如果它们同时触摸 1 和 2,我将能够检测到该连接,我们将其称为 {1-2}。如果一个人触摸条带 1 和 2,另一个人触摸条带 3 和 5,我可以检测到状态 {1-2, 3-5}。

在这些连接列表中,集合之间的任何重叠都只会创建集合的并集,即。 {1-2, 2-3} 永远不会被检测到,相反我会看到 {1-2-3}。

我的工作是编写代码,使事件响应这些条件而发生。我将轮询输入并获取一组触摸条带的列表,然后...

所以我的问题是 - 像这样的子集列表有哪些有趣的属性?我可以观察什么样的模式?枚举可能的连接组列表的公式是什么?我对这些数据的属性的了解越丰富,我就越能将其映射到有趣且适当的事件。映射可以是无记忆的(即,对于给定的输入状态是确定性的),或者它可以响应序列,甚至序列的时序。我有一些可以采取的方向线索,但我希望一些对算法和序列有更多了解的人能够在这里给我一些指示。

I am designing an interactive installation for a gallery where I will receive input telling me which of 8 input transducers have been bridged. For example if someone touches strip number 1, I will be able to detect that. For convenience let's notate that as {1}. If they touch 1 and 2 simultaniously, I will be able to detect that connection, let's call that {1-2}. If one person touches strips one and 2, and another touches strips 3 and five, I can detect the state {1-2, 3-5}.

In these lists of connections, any overlap between the sets will just create a union of the sets ie. {1-2, 2-3} would never be detectable, instead I would see {1-2-3}.

My job is to write code that makes events happen in response to these conditions. I will be polling the input and getting a list of groups of touched strips and then ...

So my questions are - what are the interesting properties of lists of subsets like this? What kind of patterns can I watch for? What is the formula for enumerating the list of possible groups of connections? The richer my insight into the properties of this data, the better I can map it to interesting and appropriate events. Mapping can be memoryless (ie. deterministic for a given input state) or it could reply to sequences, or even the timing of sequences. I have a few clues of directions I could take this, but I am hoping some folks with a bit more knowledge of algorithms and sequences will be able to give me some pointers here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撑一把青伞 2024-08-26 02:42:23

您似乎正在对一组传感器进行分区。只需将任何未桥接的传感器视为单组即可。

You seem to be partitioning a set of transducers. Just consider any unbridged transducer a singleton set.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文