Dear @adrHuerta,
This is actually a good job and I found it interesting, especially the presentation of results.
When I use the functions with a different dataset it gives suspicious results and "NaN"s (see the screenshot).
.
Any idea what could cause that?
Attached is the sample data.
Thanks.