Allow tail call optimization
This commit is contained in:
parent
4f2ebb17ff
commit
1c5113da29
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user