Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
IFOS2D
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
GPIAG-Software
IFOS2D
Commits
0d135133
Commit
0d135133
authored
Jan 04, 2016
by
Florian Wittkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce joint_type==3
parent
d442058a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/joint_inversion.c
src/joint_inversion.c
+15
-0
No files found.
src/joint_inversion.c
View file @
0d135133
...
...
@@ -77,6 +77,21 @@ float ** joint_inversion_grad ( float ** gradiant_1,float ** gradiant_2, float a
joint_gradiant
=
gradiant_1
;
break
;
case
3
:
/* joint_type=1: Normalize both and take the arithmetic mean */
max1
=
global_maximum
(
gradiant_1
);
max2
=
global_maximum
(
gradiant_2
);
for
(
j
=
1
;
j
<=
NY
;
j
++
){
for
(
i
=
1
;
i
<=
NX
;
i
++
){
gradiant_1
[
j
][
i
]
=
(
gradiant_1
[
j
][
i
]
/
max1
+
gradiant_2
[
j
][
i
]
/
max2
)
*
(
max2
+
max1
);
if
(
isnan
(
gradiant_1
[
j
][
i
]))
{
gradiant_1
[
j
][
i
]
=
0
.
0
;
}
}
}
joint_gradiant
=
gradiant_1
;
break
;
}
return
joint_gradiant
;
...
...
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