Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
fwi
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
Model registry
Operate
Environments
Monitor
Incidents
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
gmsh
fwi
Commits
1dafc37f
Commit
1dafc37f
authored
2 years ago
by
Boris Martin
Browse files
Options
Downloads
Patches
Plain Diff
L2 distance can now compute best model fit
parent
da54245a
No related branches found
No related tags found
1 merge request
!10
Draft: Source estimation
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
specific/data/objective/l2distance.cpp
+15
-1
15 additions, 1 deletion
specific/data/objective/l2distance.cpp
specific/data/objective/l2distance.h
+2
-0
2 additions, 0 deletions
specific/data/objective/l2distance.h
with
17 additions
and
1 deletion
specific/data/objective/l2distance.cpp
+
15
−
1
View file @
1dafc37f
...
...
@@ -45,6 +45,20 @@ namespace l2distance
}
return
_v
;
}
template
<
Physic
T_Physic
>
std
::
vector
<
std
::
vector
<
std
::
complex
<
double
>>>
Objective
<
T_Physic
>::
improvedShotIntensity
(
const
Data
<
T_Physic
>
&
d1
)
const
{
throw
Exception
(
"Shot fitting only works in Physic::acoustic so far"
);
//return leastSquareShotIntensity(d1, d0);
}
template
<
>
std
::
vector
<
std
::
vector
<
std
::
complex
<
double
>>>
Objective
<
Physic
::
acoustic
>::
improvedShotIntensity
(
const
Data
<
Physic
::
acoustic
>
&
d1
)
const
{
return
leastSquareShotIntensity
(
d1
,
d0
);
}
template
class
Objective
<
Physic
::
acoustic
>;
template
class
Objective
<
Physic
::
electromagnetic
>;
template
class
Objective
<
Physic
::
elastodynamic
>;
...
...
This diff is collapsed.
Click to expand it.
specific/data/objective/l2distance.h
+
2
−
0
View file @
1dafc37f
...
...
@@ -32,6 +32,8 @@ namespace l2distance
virtual
double
performance
(
const
Data
<
T_Physic
>&
d
);
virtual
const
Data
<
T_Physic
>&
update
(
Type
type
,
const
DataStateEvaluator
<
T_Physic
>&
ds
);
std
::
vector
<
std
::
vector
<
std
::
complex
<
double
>>>
improvedShotIntensity
(
const
Data
<
T_Physic
>&
d
)
const
;
};
};
...
...
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