How to create a custom Index that is a function of multiple coordinates/dimensions
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 928
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'd like to know if a new feature can be added to have Index knowing about not only its Dimension, but also the other dimensions.
I already shared this with @karllessard , but I'd like to see if we can do something about.
Let me explain: I have a float[rows*columns] table with the actual data and an int[rows*columns] table with permutations to sort each column of the data table separately.
Data table:
data = [ 1.34 0.87 2.45 ]
[ 0.45 1.56 1.66 ]
[ 1.02 0.98 0.34 ]
permutations = [ 2 0 2 ]
[ 0 2 1 ]
[ 1 1 0 ]
This is a way to have both a sorted and an unsorted version of the data table by using permutations in the indexing when the sorted version is needed.
I was thinking to put the float table in a FloatDataBuffer, then wrap it in a FloatNdArray and create an Index that uses the permutations table. But the fact that we need a separate Index instance for each dimension makes the things complicated (impossible?). Is now the only option to implement my own FloatDataBuffer/FloatNdArray?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 Index 和 Dimension 抽象,然后检查 FloatDataBuffer 和 FloatNdArray,以了解每个维度如何获得自己的 Index。将该设计与所描述的 data 表和 permutations 表进行比较。完成的标准是确定共享的多维 Index 是否可行,或者是否需要自定义的 FloatDataBuffer/FloatNdArray;未指定具体的文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- data
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100