Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
juobs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Javier Ugarrio
juobs
Commits
9a9e459c
Commit
9a9e459c
authored
2 years ago
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md_val TSM prop=4 case 1st try
parent
94d65f67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
src/juobs_tools.jl
src/juobs_tools.jl
+27
-0
No files found.
src/juobs_tools.jl
View file @
9a9e459c
...
@@ -559,6 +559,33 @@ function md_val(a::uwreal, obs::Corr, derm::Vector{Corr}; new_version::Bool=fals
...
@@ -559,6 +559,33 @@ function md_val(a::uwreal, obs::Corr, derm::Vector{Corr}; new_version::Bool=fals
end
end
der
=
length
(
a
.
der
)
>=
maximum
(
n_ow1
)
&&
length
(
a
.
der
)
>=
maximum
(
n_ow2
)
?
a
.
der
[
n_ow1
]
*
w_mean
:
0.0
der
=
length
(
a
.
der
)
>=
maximum
(
n_ow1
)
&&
length
(
a
.
der
)
>=
maximum
(
n_ow2
)
?
a
.
der
[
n_ow1
]
*
w_mean
:
0.0
end
end
elseif
all
(
count
.
(
prop
)
.==
4
)
if
TSM
==
false
return
nothing
else
corr_der
=
getfield
.
(
corr
,
:
der
)
n
=
findall
.
(
t
->
t
==
1
,
prop
)
n
=
vcat
(
n
'
...
)
if
all
(
n
[
:
,
1
]
.==
n
[
1
,
1
])
# find ow and w
n_w
=
n
[
1
,
1
]
n_ow1
=
n
[
:
,
2
]
n_ow2
=
n
[
:
,
3
]
elseif
all
(
n
[
:
,
2
]
.==
n
[
1
,
2
])
n_w
=
n
[
1
,
2
]
n_ow1
=
n
[
:
,
1
]
n_ow2
=
n
[
:
,
3
]
elseif
all
(
n
[
:
,
3
]
.==
n
[
1
,
3
])
&&
all
(
n
[
:
,
4
]
.==
n
[
1
,
4
])
n_w1
=
n
[
1
,
4
]
n_w2
=
n
[
1
,
3
]
n_ow1
=
n
[
:
,
1
]
n_ow2
=
n
[
:
,
2
]
end
w_mean
=
1
/
getindex
.
(
corr_der
,
n_ow1
)[
1
]
if
1
/
getindex
.
(
corr_der
,
n_ow1
)[
1
]
!=
1
/
getindex
.
(
corr_der
,
n_ow2
)[
1
]
error
(
"w_mean with n_ow1 and with n_ow2 different"
)
end
der
=
length
(
a
.
der
)
>=
maximum
(
n_ow1
)
&&
length
(
a
.
der
)
>=
maximum
(
n_ow2
)
?
a
.
der
[
n_ow1
]
*
w_mean
:
0.0
end
else
else
return
nothing
return
nothing
end
end
...
...
This diff is collapsed.
Click to expand it.
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