Skip to content

Instantly share code, notes, and snippets.

@asmaier
asmaier / poisson_confint.ipynb
Created June 16, 2023 16:03
Computing confidence intervals for Poisson distributions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asmaier
asmaier / pycaret_timeseries.ipynb
Created July 25, 2023 09:31
A first look at the new timeseries forecasting module of pyCaret
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asmaier
asmaier / generalized_means.md
Last active November 14, 2023 13:26
Derivation of limits of the generalised mean of two numbers

Generalized Mean

The generalized mean $M$ (also called power mean or Hölder mean) of two numbers $a$ and $b$ of degree $p$ is

$$ M_{p}(a,b) = \left(\frac{a^{p} + b^{p}}{2}\right)^{\frac{1}{p}} $$

The following derivations often make use of the trick

@asmaier
asmaier / flet_for_x86.md
Last active April 7, 2025 10:48
Cross-compiling Flet app on ARM Mac for x86 Windows

Overview

So you are a Python developer using MAC with ARM (M1 - M4) processors, but you need/want to develop a desktop app with https://flet.dev/ for x86 on Windows?

Then you came to the right place. But buckle up, it will be a bumpy ride!

VMWare Fusion

Since https://github.com/dockur/windows is not supported for Mac you will need a different solution to run Windows on Mac. And if you don't want to pay money for Parallels, I recommend to use VMware Fusion.