Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coenen, Joachim
Frida
Commits
05c4e811
Commit
05c4e811
authored
11 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
?
parent
140894b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pub/src/commands.cpp
+1
-1
1 addition, 1 deletion
pub/src/commands.cpp
pub/src/fit.cpp
+8
-8
8 additions, 8 deletions
pub/src/fit.cpp
with
9 additions
and
9 deletions
pub/src/commands.cpp
+
1
−
1
View file @
05c4e811
...
...
@@ -131,7 +131,7 @@ bool fridaCommand( string cmd )
" csf set gradient step factor
\n
"
" cse set sqrt of differentiation step
\n
"
" csc set number of calls
\n
"
" cs
p
set
print frequenc
y
\n
"
" cs
v
set
verbosit
y
\n
"
" csm set fit metric
\n
"
" cst set maximum duration of fits
\n
"
"Tuning parameters for integration:
\n
"
...
...
This diff is collapsed.
Click to expand it.
pub/src/fit.cpp
+
8
−
8
View file @
05c4e811
...
...
@@ -31,7 +31,7 @@ namespace NCurveFit {
double
Epsilon
=
1.e-14
;
double
Factor
=
100.
;
int
nCall
=
200
;
int
nPrint
=
0
;
int
verbosity
=
0
;
int
mFitMetric
=
2
;
double
maxtime
=
3
;
}
...
...
@@ -41,11 +41,11 @@ namespace NCurveFit {
void
NCurveFit
::
setFitTuningPars
(
string
which
)
{
if
(
which
==
"?"
)
printf
(
"Fit setup:
\n
nCall=%d
\n
nPrint
=%d
\n
Factor=%g
\n
"
printf
(
"Fit setup:
\n
nCall=%d
\n
Verbosity
=%d
\n
Factor=%g
\n
"
" Eps=%g
\n
Metric=%i
\n
"
,
nCall
,
nPrint
,
Factor
,
Epsilon
,
mFitMetric
);
else
if
(
which
==
"
p
"
)
nPrint
=
iask
(
"
Print frequency"
,
nPrint
);
nCall
,
verbosity
,
Factor
,
Epsilon
,
mFitMetric
);
else
if
(
which
==
"
v
"
)
verbosity
=
iask
(
"
Verbosity"
,
verbosity
);
else
if
(
which
==
"c"
)
nCall
=
iask
(
"Max no of Levenberg-Marquardt steps"
,
nCall
);
else
if
(
which
==
"f"
)
...
...
@@ -207,11 +207,11 @@ void NCurveFit::fit( bool _allow_slow_conv )
data
.
fd
=
fd
;
int
np
=
fc
->
nP
;
control
.
epsilon
=
Epsilon
;
control
.
stepbound
=
Factor
;
control
.
patience
=
nCall
;
control
.
verbosity
=
verbosity
;
for
(
int
j
=
0
;
j
<
fc
->
nJ
();
j
++
)
{
if
(
fc
->
V
[
j
]
->
frozen
)
...
...
@@ -242,7 +242,7 @@ void NCurveFit::fit( bool _allow_slow_conv )
Par
[
ipf
++
]
=
C
->
P
[
ip
];
}
if
(
nPrint
)
printf
(
"
\n
"
);
if
(
verbosity
)
printf
(
"
\n
"
);
// Levenberg-Marquardt routine from library lmfit:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment