Finished Introduction

This commit is contained in:
Marius Drechsler 2024-07-23 17:09:02 +02:00
parent dbce6aa469
commit 404db9cd73
7 changed files with 108 additions and 28 deletions

View file

@ -1,9 +1,9 @@
#import "@preview/lovelace:0.3.0": *
#pseudocode-list(booktabs: true, numbered-title: [Find quantizer offsets])[
+ $p$: initial offset value
+ $a$: amount of offsets
#pseudocode-list(booktabs: true, numbered-title: [Find reconstruction quantizers])[
+ *start* at the center of the first metric
+
+ *while* $(i = 1) <= a$:
+ *return* $i dot p$
+ *end*

14
pseudocode/offsets.typ Normal file
View file

@ -0,0 +1,14 @@
#import "@preview/lovelace:0.3.0": *
#pseudocode-list(booktabs: true, numbered-title: [Find all offsets])[
+ *list* offsets
+ *if* $s$ is odd
+ $s = s-1$
+ *append* 0 *to list* offsets
+ *while* $i <= s/2$
+ *append* $+(i dot phi)$ *to list* offsets
+ *append* $- (i dot phi)$ *to list* offsets
+ *sort list* offsets in ascending order
+ *end*
]