Allow tail call optimization

This commit is contained in:
Igor Dunaev 2024-04-25 22:50:07 +03:00
parent 4f2ebb17ff
commit 1c5113da29

View File

@ -91,7 +91,7 @@ public class EmpiricalModeDecomposition<BA, L: Number> (
/** /**
* Compute a single iteration of the sifting process. * Compute a single iteration of the sifting process.
*/ */
private fun siftInner( private tailrec fun siftInner(
prevMode: Series<Double>, prevMode: Series<Double>,
iterationNumber: Int, iterationNumber: Int,
sNumber: Int sNumber: Int