Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
7c4c6c01
Commit
7c4c6c01
authored
Sep 10, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set LMA lambda in adjustment mode
parent
eebc9154
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
FocusingField.java
src/main/java/FocusingField.java
+3
-0
No files found.
src/main/java/FocusingField.java
View file @
7c4c6c01
...
@@ -143,6 +143,7 @@ public class FocusingField {
...
@@ -143,6 +143,7 @@ public class FocusingField {
private
int
numIterations
;
// maximal number of iterations
private
int
numIterations
;
// maximal number of iterations
private
double
maxLambda
;
// max lambda to fail
private
double
maxLambda
;
// max lambda to fail
private
double
lambda
;
// copied from series
private
double
lambda
;
// copied from series
private
double
adjustmentInitialLambda
;
private
String
strategyComment
;
private
String
strategyComment
;
private
boolean
lastInSeries
;
private
boolean
lastInSeries
;
private
int
currentStrategyStep
;
// -1 do not read from strategies
private
int
currentStrategyStep
;
// -1 do not read from strategies
...
@@ -297,6 +298,7 @@ public class FocusingField {
...
@@ -297,6 +298,7 @@ public class FocusingField {
boolean
[]
rslt_show_chnDflt
={
true
,
true
,
true
,
true
,
true
,
true
};
boolean
[]
rslt_show_chnDflt
={
true
,
true
,
true
,
true
,
true
,
true
};
rslt_show_chn
=
rslt_show_chnDflt
.
clone
();
rslt_show_chn
=
rslt_show_chnDflt
.
clone
();
// not saved/restored
// not saved/restored
adjustmentInitialLambda
=
0.001
;
lambdaStepUp
=
8.0
;
// multiply lambda by this if result is worse
lambdaStepUp
=
8.0
;
// multiply lambda by this if result is worse
lambdaStepDown
=
0.5
;
// multiply lambda by this if result is better
lambdaStepDown
=
0.5
;
// multiply lambda by this if result is better
thresholdFinish
=
0.001
;
// (copied from series) stop iterations if 2 last steps had less improvement (but not worsening )
thresholdFinish
=
0.001
;
// (copied from series) stop iterations if 2 last steps had less improvement (but not worsening )
...
@@ -4848,6 +4850,7 @@ public boolean LevenbergMarquardt(
...
@@ -4848,6 +4850,7 @@ public boolean LevenbergMarquardt(
if
(
debugLevel
>
0
)
System
.
out
.
println
(
"testMeasurement(), run "
+
n
+
" (z="
+
zTxTy
[
0
]+
" tx="
+
zTxTy
[
1
]+
" ty="
+
zTxTy
[
2
]+
")"
);
if
(
debugLevel
>
0
)
System
.
out
.
println
(
"testMeasurement(), run "
+
n
+
" (z="
+
zTxTy
[
0
]+
" tx="
+
zTxTy
[
1
]+
" ty="
+
zTxTy
[
2
]+
")"
);
boolean
[]
was2PrevEnable
=(
wasPrevEnable
==
null
)?
null
:
wasPrevEnable
.
clone
();
boolean
[]
was2PrevEnable
=(
wasPrevEnable
==
null
)?
null
:
wasPrevEnable
.
clone
();
wasPrevEnable
=(
prevEnable
==
null
)?
null
:
prevEnable
.
clone
();
wasPrevEnable
=(
prevEnable
==
null
)?
null
:
prevEnable
.
clone
();
this
.
lambda
=
this
.
adjustmentInitialLambda
;
boolean
OK
=
LevenbergMarquardt
(
boolean
OK
=
LevenbergMarquardt
(
measurement
,
measurement
,
false
,
// true, // open dialog
false
,
// true, // open dialog
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment