()
| 43 | } |
| 44 | |
| 45 | private getNextIndex(): number { |
| 46 | // starts from 0 once we reach end of the array |
| 47 | const newTarget = this.nextIndex; |
| 48 | this.nextIndex = (this.nextIndex + 1) % this.inputValues.length; |
| 49 | return newTarget; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | export class MultiTypeAverageWindow { |