Programming, Scala

Call by Name vs Call by Value in Scala

This information is based on the coursera course “Functional Programming Principles in Scala” by Martin Odersky. In Scala expressions* are evaluated by the Scala interpreter following the substitution model. What does this mean? What are expressions, and what means they are evaluated? An expression could be something as simple as “4+3”. Its the combination of

Frontend

How to serve local web files over HTTP for testing

Recently I got interested in creating my own webapp. If you write a simple html file you can open it with a browser. Notice that in the browser in the little window in which you normally type a URL it says ‘file://’. This tells you that the file is not served over the HTTP protocol.

plot of the standard normal distribution
Probability and Statistics

Understanding the Probability Density Function of the Normal Distribution

A random variable \(Z\)  is said to have the standard normal distribution, if its probability density function (pdf) is as follows:  \[\begin{equation}f_Z(z)=\frac{1}{\sqrt{2\pi}} * \exp(\frac{-z^2}{2}), \quad -\infty<z<\infty\end{equation} \tag{1}\label{eq:eq1} \] This formula seems hard to digest and remember. The goal of this post is to get familiar with it. We will do so by dissecting it thoroughly

Probability and Statistics

Stars and Bars Argument (Einstein-Bose) or placing n identical objects into n distinct bins, or drawing k times from n balls with replacement, order does not matter

https://brilliant.org/wiki/integer-equations-star-and-bars/ https://brilliant.org/wiki/identical-objects-into-distinct-bins/ So, the total number of objects consists of the number of balls or start or else plus the number of bins -1 (which is the number of bars needed). Note, that it does not matter if we find all the ways we can choose the number of bars from the total number of

Scroll to Top
Cookie Consent with Real Cookie Banner