Added Levenberg-Marquardt algorithm and svd Golub-Kahan #513

Merged
margarita0303 merged 35 commits from dev into dev 2023-06-19 16:11:59 +03:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ef4335bc41 - Show all commits

View File

@ -16,7 +16,7 @@ import space.kscience.kmath.tensors.core.levenbergMarquardt
import kotlin.random.Random import kotlin.random.Random
import kotlin.reflect.KFunction3 import kotlin.reflect.KFunction3
fun streamLm(lm_func: KFunction3<MutableStructure2D<Double>, MutableStructure2D<Double>, Int, MutableStructure2D<Double>>, fun streamLm(lm_func: (MutableStructure2D<Double>, MutableStructure2D<Double>, Int) -> (MutableStructure2D<Double>),
startData: StartDataLm, launchFrequencyInMs: Long, numberOfLaunches: Int): Flow<MutableStructure2D<Double>> = flow{ startData: StartDataLm, launchFrequencyInMs: Long, numberOfLaunches: Int): Flow<MutableStructure2D<Double>> = flow{
var example_number = startData.example_number var example_number = startData.example_number

View File

@ -88,7 +88,7 @@ public data class LMResultInfo (
* exampleNumber: a parameter for a function with which you can choose its behavior. * exampleNumber: a parameter for a function with which you can choose its behavior.
*/ */
public data class LMInput ( public data class LMInput (
var func: KFunction3<MutableStructure2D<Double>, MutableStructure2D<Double>, Int, MutableStructure2D<Double>>, var func: (MutableStructure2D<Double>, MutableStructure2D<Double>, Int) -> (MutableStructure2D<Double>),
var startParameters: MutableStructure2D<Double>, var startParameters: MutableStructure2D<Double>,
var independentVariables: MutableStructure2D<Double>, var independentVariables: MutableStructure2D<Double>,
var realValues: MutableStructure2D<Double>, var realValues: MutableStructure2D<Double>,