In this article, A high speed Guassian fitting method suggested by Guo’s will be introduced. In my case, it is around 200x faster compared to the python’s lmfit library and has a similar speed compared to previously demonstrated Jacquelin’s method. The model used in Guo’s article is: Its peak can be calculated using these…
Tag: others
[Curve Fitting & peak search] Fast fitting a Guassian probability function to data points using C & python
In some scenarios, for instance, in Xilinx’s Vivado HLS, we may need to write our own curve fitting function as such function is not built-in and external library may not be quick enough to handle our needs. In this article, A rapid Guassian fitting method suggested by Jacquelin will be introduced. In my case, it…
Fitting quadratic equation to a set of data points using Least Squares Method with C and Python (Verified with curve fitting function in Excel)
According to Sharma’s article, any polynomial equations could fit to a given set of data points in this way. To fit a qudratic equation to the data points below, we may try to use Sharma’s method with N = 5 (We have 5 data-point pairs). After Gaussian elimination, we will get a0 = 0.55,…
Changing the site url (public/private IP) and disabling all plugins of WordPress without accessing the admin dashboard
MAKE SURE TO BACKUP ALL YOUR DATA BEFORE USING THIS METHOD! Step 1: If you are using docker to run the MySQL server, In my case, it’s Connect to the MySQL database In my case, it’s Step 2: Display all of the databases and select the WordPress database Step 3: Modify the site URL…
Synchronize your folders using Syncthing inside a Tailscale private network
We shall avoid using Syncthing over the public network directly to secure our servers. In this article, I will introduce how to synchronize folders using Syncthing inside your Tailscale private network. Follow Steps 1-5 on this article or instructions on the Tailscale official website to install Tailscale. Follow Steps 1-6 below or this article…
Create Master-Master MySQL replication (over a private network) using Tailscale
To secure our servers, we shall avoid synchronizing the MySQL database over the public network. In this article, I will introduce how to synchronize two MySQL databases with master-master replication inside your Tailscale private network. Follow Steps 1-5 on this article or instructions on the Tailscale official website to set up Tailscale on your…