Particle Swarm Optimization (PSO) in C#

Particle Swarm Optimization (PSO) is a computational method for optimization of a problem by simulating a set of moving particles that move around a search-space. Now let’s say that you want to find the (global) minimum of the square function: f(x) = x[0]^2 + x[1]^2. The source code can be found on https://github.com/isachpaz/OptimizationSharp


Lyman-Kutcher-Burman (LKB) model for normal tissue complication probability

As an example, calculating the NTCP based on the Lyman-Kutcher-Burman (LKB) model for the endpoint of urethra stricture, we use the following parameters TD50 = 116.7 Gy, m = 0.23, n = 0.3, and α/β = 5.0 Gy. (as published by Panitierri et al.[1], and used in the study of Spohn and Sachpazidis et al.[2]).…


OpenCV2: Access your USB camera in python

To access your USB camera on your laptop with the help of OpenCV2 in Python is a matter of a few lines of code. I tested it in Anaconda environment with Python 3.7. and OpenCV-4.1.1 library running on Win 10. I assume that you have a working Anaconda environment. Unless, please follow the official instructions…


Monte Carlo Simulation for Probability Calculation….

Problem: If a coin with a diameter of D is tossed and lands on a square tile of side A, what is the probability that the coin will land on tile’s edge or fall completely within the tile? Analytical solution: The probability of a coin to land on tile’s edge is the complementary probability of…


RT-DICOM Tag viewer

RT-DICOM Tag viewer is an WPF application for viewing radiation treatment dicom tags. It supports RT-Images, RT-Plans, RT-Sructures, RT-Dosis files. You can download it from here…