Finished with improvements, continued on experimental resuls

This commit is contained in:
Marius Drechsler 2024-08-05 19:04:39 +02:00
parent f494a2cf61
commit b372d043e6
11 changed files with 265 additions and 59 deletions

View file

@ -0,0 +1,25 @@
import pandas as pd
# Create the DataFrame from the given data
data = {
'config': ['35 35', '25 25', '35 45', '5 5', '45 45', '25 35', '55 55', '45 55', '25 15', '45 35',
'55 45', '15 15', '35 25', '35 15', '5 15', '15 5', '25 5', '15 25', '15 35', '55 35',
'45 25', '5 25', '35 55', '25 45', '35 5', '45 15', '55 25', '5 35', '15 45', '25 55',
'45 5', '55 15', '5 45', '15 55', '55 5', '5 55'],
'BER': [0.000029, 0.000036, 0.000048, 0.000048, 0.000054, 0.000061, 0.000074, 0.000079, 0.000079, 0.000088,
0.000092, 0.000093, 0.000098, 0.000107, 0.000119, 0.000130, 0.000153, 0.000157, 0.000195, 0.000234,
0.000239, 0.000252, 0.000326, 0.000354, 0.000712, 0.001103, 0.001109, 0.001232, 0.001387, 0.001493,
0.003230, 0.003848, 0.004605, 0.005004, 0.008883, 0.010545],
'diff': [0, 0, 10, 0, 0, 10, 0, 10, 10, 10, 10, 0, 10, 20, 10, 10, 20, 10, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 30, 30, 40, 40, 40, 40, 50, 50]
}
df = pd.DataFrame(data)
df['BER'] = df['BER'].apply(lambda x: '{:.10f}'.format(x))
# Save to CSV
file_path = "sorted_configurations_with_diff.csv"
df.to_csv(file_path, index=False)
file_path

View file

@ -0,0 +1,47 @@
#import "@preview/cetz:0.2.2"
#let data = csv("./sorted_configurations_with_diff.csv")
#let errorrate = data.enumerate().map(
row => (row.at(0),calc.log(float(row.at(1).at(1))))
)
#let diff = data.enumerate().map(
row => (row.at(0),float(row.at(1).at(2)))
)
#let conf = data.enumerate().map(
row => (row.at(0), row.at(1).at(0))
)
#let formatter(v) = [$10^#v$]
#cetz.canvas({
import cetz.draw: *
import cetz.plot
set-style(
axes: (bottom: (tick: (label: (angle: 90deg, offset: 0.5))))
)
plot.plot(
y-label: $"Bit error rate"$,
x-label: "Operating configuration",
x-tick-step: none,
x-ticks: conf,
y-format: formatter,
y-tick-step: 0.5,
axis-style: "scientific-auto",
size: (16,8),
plot.add(errorrate, axes: ("x", "y"), style: (stroke: (paint: red))),
plot.add-hline(1)
)
plot.plot(
y2-label: "Temperature difference",
y2-tick-step: 10,
axis-style: "scientific-auto",
size: (16,8),
plot.add(diff, axes: ("x1","y2")),
)
})

View file

@ -0,0 +1,36 @@
35 35,0.0000290000,0
25 25,0.0000360000,0
35 45,0.0000480000,10
5 5,0.0000480000,0
45 45,0.0000540000,0
25 35,0.0000610000,10
55 55,0.0000740000,0
45 55,0.0000790000,10
25 15,0.0000790000,10
45 35,0.0000880000,10
55 45,0.0000920000,10
15 15,0.0000930000,0
35 25,0.0000980000,10
35 15,0.0001070000,20
5 15,0.0001190000,10
15 5,0.0001300000,10
25 5,0.0001530000,20
15 25,0.0001570000,10
15 35,0.0001950000,20
55 35,0.0002340000,20
45 25,0.0002390000,20
5 25,0.0002520000,20
35 55,0.0003260000,20
25 45,0.0003540000,20
35 5,0.0007120000,30
45 15,0.0011030000,30
55 25,0.0011090000,30
5 35,0.0012320000,30
15 45,0.0013870000,30
25 55,0.0014930000,30
45 5,0.0032300000,40
55 15,0.0038480000,40
5 45,0.0046050000,40
15 55,0.0050040000,40
55 5,0.0088830000,50
5 55,0.0105450000,50
1 35 35 0.0000290000 0
2 25 25 0.0000360000 0
3 35 45 0.0000480000 10
4 5 5 0.0000480000 0
5 45 45 0.0000540000 0
6 25 35 0.0000610000 10
7 55 55 0.0000740000 0
8 45 55 0.0000790000 10
9 25 15 0.0000790000 10
10 45 35 0.0000880000 10
11 55 45 0.0000920000 10
12 15 15 0.0000930000 0
13 35 25 0.0000980000 10
14 35 15 0.0001070000 20
15 5 15 0.0001190000 10
16 15 5 0.0001300000 10
17 25 5 0.0001530000 20
18 15 25 0.0001570000 10
19 15 35 0.0001950000 20
20 55 35 0.0002340000 20
21 45 25 0.0002390000 20
22 5 25 0.0002520000 20
23 35 55 0.0003260000 20
24 25 45 0.0003540000 20
25 35 5 0.0007120000 30
26 45 15 0.0011030000 30
27 55 25 0.0011090000 30
28 5 35 0.0012320000 30
29 15 45 0.0013870000 30
30 25 55 0.0014930000 30
31 45 5 0.0032300000 40
32 55 15 0.0038480000 40
33 5 45 0.0046050000 40
34 15 55 0.0050040000 40
35 55 5 0.0088830000 50
36 5 55 0.0105450000 50