fix mistake in streaming version

This commit is contained in:
Margarita Lashina 2023-06-13 03:06:55 +03:00
parent ef4335bc41
commit 5f2690309b

View File

@ -51,8 +51,8 @@ fun streamLm(lm_func: (MutableStructure2D<Double>, MutableStructure2D<Double>, I
val result = DoubleTensorAlgebra.levenbergMarquardt(inputData)
emit(result.resultParameters)
delay(launchFrequencyInMs)
p_init = result.resultParameters
y_dat = generateNewYDat(y_dat, 0.1)
inputData.realValues = generateNewYDat(y_dat, 0.1)
inputData.startParameters = result.resultParameters
if (!isEndless) steps -= 1
}
}