Continued on Reconstruction

This commit is contained in:
Marius Drechsler 2024-07-19 20:54:01 +02:00
parent 1ac5a9e093
commit 8dbb73a8cf
4 changed files with 38 additions and 3 deletions

View file

@ -190,7 +190,7 @@ If $s$ is even, we need to move our quantizer $s/2$ times some distance to the r
We can define the ideal position for the quantizer bounds based on its corresponding metric as centered around the center of the related metric. We can define the ideal position for the quantizer bounds based on its corresponding metric as centered around the center of the related metric.
We can find these new bounds graphically as depicted in @fig:smhd_find_bound_graph. We first determine the x-values of the centers of a metric (here M1, as shown with the arrows). We can then place the quantizer steps with step size $Delta$ (@eq:delta) evenly spaced around these points. We can find these new bounds graphically as depicted in @fig:smhd_find_bound_graph. We first determine the x-values of the centers of a metric (here M1, as shown with the arrows). We can then place the quantizer steps with step size $Delta$ (@eq:delta) evenly spaced around these points.
With these new points for the vertical steps of $cal(Q)$, we can draw the new quantizer for the first metric in @fig:smhd_found_bound_graph.
#grid( #grid(
@ -205,5 +205,14 @@ We can find these new bounds graphically as depicted in @fig:smhd_find_bound_gra
#figure( #figure(
include("../graphics/quantizers/s-metric/2_2_found_quantizer1.typ"), include("../graphics/quantizers/s-metric/2_2_found_quantizer1.typ"),
caption: [Quantizer for the first metric] caption: [Quantizer for the first metric]
)]] )<fig:smhd_found_bound_graph>]]
) )
As for metric 2, we can apply the same strategy and find the points for the vertical steps to be at $1/16, 5/16, 9/16$ and $13/16$. This quantizer can be visualized together with the first metric quantizer in @fig:smhd_2_2_reconstruction, forming the complete quantizer for the reconstruction phase of a 2-bit 2-metric configuration $cal(R)(2,2,tilde(x))$.
#figure(
include("../graphics/quantizers/s-metric/2_2_reconstruction.typ"),
caption: [2-bit 2-metric reconstruction quantizer]
)<fig:smhd_2_2_reconstruction>

View file

@ -6,7 +6,7 @@
plot.plot(size: (8,6), plot.plot(size: (8,6),
x-tick-step: none, x-tick-step: none,
x-ticks: ((3/16, [3/16]), (7/16, [7/16]), (11/16, [11/16]), (15/16, [15/16])), x-ticks: ((3/16, [3/16]), (7/16, [7/16]), (11/16, [11/16]), (15/16, [15/16])),
y-label: $cal(Q)(2, 1, tilde(x))$, y-label: $cal(Q)(2, 2, tilde(x))$,
x-label: $tilde(x)$, x-label: $tilde(x)$,
y-tick-step: none, y-tick-step: none,
y-ticks: ((3/16, [00]), (7/16, [01]), (11/16, [10]), (15/16, [11])), y-ticks: ((3/16, [00]), (7/16, [01]), (11/16, [10]), (15/16, [11])),

View file

@ -0,0 +1,26 @@
#import "@preview/cetz:0.2.2": canvas, plot
#let line_style = (stroke: (paint: red, thickness: 2pt))
#let line_style2 = (stroke: (paint: blue, thickness: 2pt))
#let dashed = (stroke: (dash: "dashed"))
#canvas({
plot.plot(size: (8,6),
legend: "legend.south",
legend-style: (orientation: ltr, item: (spacing: 0.5)),
x-tick-step: 1/4,
//x-ticks: ((3/16, [3/16]), (7/16, [7/16]), (11/16, [11/16]), (15/16, [15/16])),
y-label: $cal(R)(2, 2, tilde(x))$,
x-label: $tilde(x)$,
y-tick-step: none,
y-ticks: ((3/16, [00]), (7/16, [01]), (11/16, [10]), (15/16, [11])),
axis-style: "left",
x-min: 0,
x-max: 1,
y-min: 0,
y-max: 1,{
plot.add(((0,3/16), (3/16,3/16), (7/16,7/16), (11/16,11/16), (15/16, 15/16), (15/16, 3/16), (1, 3/16)), line: "vh", style: line_style, label: [Metric 1])
plot.add(((0, 15/16), (1/16, 15/16), (1/16, 3/16), (5/16, 3/16), (9/16, 7/16), (13/16, 11/16), (13/16, 15/16), (1, 15/16)),line: "vh", style: line_style2, label: [Metric 2])
plot.add-hline(3/16, 7/16, 11/16, 15/16, style: dashed)
plot.add-vline(3/16, 7/16, 11/16, 15/16, style: dashed)
})
})

BIN
main.pdf

Binary file not shown.