Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ADerrors.jl
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
Alberto Ramos
ADerrors.jl
Commits
9be29b9f
Commit
9be29b9f
authored
4 years ago
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected error of autoCF and window for covariances
parent
125abd54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ADerrorsCF.jl
src/ADerrorsCF.jl
+5
-5
No files found.
src/ADerrorsCF.jl
View file @
9be29b9f
...
...
@@ -305,7 +305,7 @@ function uwerror(a::uwreal, ws::wspace, wpm::Dict{Int64,Vector{Float64}})
iw
=
wopt_ulli
(
nd_eff
,
DEFAULT_STAU
,
a
.
cfd
[
j
]
.
gamm
)
a
.
cfd
[
j
]
.
iw
=
iw
gwin
=
view
(
a
.
cfd
[
j
]
.
gamm
,
2
:
iw
)
dbias
=
a
.
cfd
[
j
]
.
gamm
[
1
]
+
2.0
*
sum
(
gwin
)
if
(
dbias
>
0.0
)
...
...
@@ -316,14 +316,14 @@ function uwerror(a::uwreal, ws::wspace, wpm::Dict{Int64,Vector{Float64}})
if
(
a
.
cfd
[
j
]
.
gamm
[
1
]
!=
0.0
)
@inbounds
for
i
in
1
:
nt
is
=
max
(
1
,
i
-
iw
-
2
)
+
1
ie
=
i
+
iw
-
1
ie
=
i
s
+
iw
-
1
@inbounds
for
k
in
is
:
ie
if
(
k
<
nt
+
1
)
cont
=
-
2.0
*
a
.
cfd
[
j
]
.
gamm
[
k
]
*
a
.
cfd
[
j
]
.
gamm
[
i
]
/
a
.
cfd
[
j
]
.
gamm
[
1
]
^
2
else
cont
=
0.0
end
if
((
i
+
k
-
2
)
<
nt
)
cont
=
cont
+
a
.
cfd
[
j
]
.
gamm
[
i
+
k
-
1
]
/
a
.
cfd
[
j
]
.
gamm
[
1
]
end
...
...
@@ -465,13 +465,13 @@ function cov(a::Vector{uwreal}, ws::wspace, wpm::Dict{Int64,Vector{Float64}})
for
k
in
1
:
length
(
a
)
for
j
in
1
:
length
(
a
[
k
]
.
ids
)
for
i
in
1
:
nid
if
(
a
[
k
]
.
ids
[
j
]
==
ids
[
j
])
if
(
a
[
k
]
.
ids
[
j
]
==
ids
[
i
])
iw
[
i
]
=
max
(
iw
[
i
],
a
[
k
]
.
cfd
[
j
]
.
iw
)
end
end
end
end
wopt
=
Dict
{
Int64
,
Vector
{
Float64
}}()
for
i
in
1
:
nid
wopt
[
ids
[
i
]]
=
[
Base
.
convert
(
Float64
,
iw
[
i
]),
-
1.0
,
-
1.0
,
-
1.0
]
...
...
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