How to create a custom Index that is a function of multiple coordinates/dimensions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 928
- Forks
- 227
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Abstraktionen Index und Dimension zu lesen, und untersuche anschließend FloatDataBuffer und FloatNdArray, um zu verstehen, wie jede Dimension ihren eigenen Index erhält. Vergleiche dieses Design mit den beschriebenen Tabellen data und permutations. Als abgeschlossen gilt die Untersuchung, wenn festgestellt wurde, ob ein gemeinsam genutzter, mehrdimensionaler Index realisierbar ist oder ob ein benutzerdefiniertes FloatDataBuffer/FloatNdArray erforderlich ist; es werden keine bestimmten Dateien oder Tests genannt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- data
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100