* @param dim concrete dim
(dim: DimensionIndex, rawIdx: number)
| 483 | * @param dim concrete dim |
| 484 | */ |
| 485 | getByRawIndex(dim: DimensionIndex, rawIdx: number): ParsedValue { |
| 486 | if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { |
| 487 | return NaN; |
| 488 | } |
| 489 | const dimStore = this._chunks[dim]; |
| 490 | return dimStore ? dimStore[rawIdx] : NaN; |
| 491 | } |
| 492 | |
| 493 | /** |
| 494 | * Get sum of data in one dimension |