Files
Notes/Documents/Arbeit/IFN/Programmieren WiSe 25 26/Notizen.md

103 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Arbeiten zusammen:
- Jamie Beu
- Julianne Kitzinger
- Arian Temouri
Fehlende Daten:
- 59513b5256dc16e99c505915cdd84aa1
- 6948c64227d75cd50901c246be88e264
- a22ad77be0d478b5fe34d1167d4dbb3a
- a96f7c881d27b739c38b81da2058a2fb
- c6679ce22dfd5646f81d40a8dbb0236b
Beispiele:
>[!danger]
>```C
>void (*(*f[])())()
>```
>*defines **f** as an array of unspecified size of pointers to functions that return pointers to functions that return void*
Congyu Ding
Annemike Rörig
```python
def fakultaet_generator(n: int) -> int:
"""
Generiert mittels ChatGPT (26.11.2025)
Prompt: "..."
- Berechnung der Fakultät
- Robuste Fehlerbehandlung
- Benötigt für Berechnung XXX
"""
# Robuste Fehlerbehandlung bei Werten kleiner 0
if n < 0:
raise ValueError("Die Fakultät ist nur für nicht-negative Zahlen definiert.")
# Berechnung der Fakultät mittels aufmultiplizieren
ergebnis = 1
for i in range(1, n + 1):
ergebnis *= i
yield ergebnis
```
Ideen:
- Stock Market Simulation (Animal Crossing)
- Gini Index
938-828
791-748
```python
# Plot
fig, ax = plt.subplots(figsize=(8,5))
ax.set_title(
"Verteiltung Durchschn. Bruttomonatsverdienste ohne Sonderz. (nach Geschlecht)"
)
sb.kdeplot(
female, label="Weiblich",
color="#fe640b", fill=True,
alpha=0.5, ax=ax
)
sb.kdeplot(
male, label="Männlich",
color="#40a02b", fill=True,
alpha=0.5, ax=ax
)
ax.legend()
text = f'''tstat: {t_stat:.2f}
pvalue: {p_value:.3f}
Pay Gap: {unbereinigter_gpg:.2f}%
Abs. Diff: {bruttoeinkommen_diff:.2f}€'''
ax.text(0.95, 0.75, text,
transform=ax.transAxes,
fontsize=10,
verticalalignment='top',
horizontalalignment='right',
bbox=dict(
facecolor='white',
edgecolor='black',
pad=5, alpha=0.8
)
)
plt.show()
```
$$\text{Birth Rate} = \frac{B}{P} * 1000$$
# Projekte
- [Social Media Addiction](https://www.kaggle.com/datasets/adilshamim8/social-media-addiction-vs-relationships)
- [Movies & Shows](https://www.kaggle.com/datasets/shivamb/amazon-prime-movies-and-tv-shows)
- 8