Skip to content

Commit

Permalink
fix LevenbergMarquardtConstrained parameter estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
bvenn committed Jul 27, 2021
1 parent f0fc7a9 commit b91c80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.Stats/Fitting/NonLinearRegression.fs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ module NonLinearRegression =
let estParams = estimatedParamsVerbose model solverOptions lambdaInitial lambdaFactor lowerBound upperBound xData yData
estParams
|> fun estParams ->
let paramGuess = Vector.last estParams
let paramGuess = Seq.last estParams
let rss = getRSS model xData yData paramGuess
estParams.[estParams.Count-1], rss

Expand Down

0 comments on commit b91c80d

Please sign in to comment.