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
8a3fa1f9
Commit
8a3fa1f9
authored
Dec 09, 2025
by
Antonino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some new updates
parent
82d18ddd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/juobs_gammaMethod.jl
src/juobs_gammaMethod.jl
+6
-6
src/juobs_tools.jl
src/juobs_tools.jl
+1
-1
No files found.
src/juobs_gammaMethod.jl
View file @
8a3fa1f9
...
...
@@ -201,7 +201,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
See also [`cov_min`](@ref) [`cov_ad`](@ref)
"""
function
cov_pe
(
vobs
::
Vector
{
ADerrors
.
uwreal
},
ws
::
ADerrors
.
wspace
)
function
cov_pe
(
vobs
::
Abstract
Vector
{
ADerrors
.
uwreal
},
ws
::
ADerrors
.
wspace
)
ids
=
ADerrors
.
unique_ids_multi
(
vobs
,
ws
)
nid
=
length
(
ids
)
nobs
=
length
(
vobs
)
...
...
@@ -224,7 +224,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
return
cov
end
cov_pe
(
vobs
::
Vector
{
ADerrors
.
uwreal
})
=
cov_pe
(
vobs
,
ADerrors
.
wsg
)
cov_pe
(
vobs
::
Abstract
Vector
{
ADerrors
.
uwreal
})
=
cov_pe
(
vobs
,
ADerrors
.
wsg
)
@doc
raw
"""
...
...
@@ -242,7 +242,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
See
also
[
`cov_pe`
](
@ref
)
[
`cov_ad`
](
@ref
)
"""
function cov_min(vobs::Vector{ADerrors.uwreal},ws::ADerrors.wspace)
function cov_min(vobs::
Abstract
Vector{ADerrors.uwreal},ws::ADerrors.wspace)
ids = ADerrors.unique_ids_multi(vobs, ws)
nid = length(ids)
iw = fill(typemax(Int64),nid)
...
...
@@ -283,7 +283,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
return cov
end
cov_min(vobs::Vector{ADerrors.uwreal}) = cov_min(vobs,ADerrors.wsg)
cov_min(vobs::
Abstract
Vector{ADerrors.uwreal}) = cov_min(vobs,ADerrors.wsg)
@doc raw"""
cov_AD
(
vobs
::
Vector
{
ADerrors
.
uwrela
}
[
ws
::
ADerrors
.
wspace
];
biased
::
Bool
=
true
,
info
::
Bool
=
false
)
...
...
@@ -302,7 +302,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
-
`info::Bool`
:
if
`true`
return
the
integration
window
used
to
compute
the
covariance
matrix
as
a
Dict
{
Int64
,
Int64
}(
id
=>
iw
)
See
also
[
`cov_min`
](
@ref
)
[
`cov_pe`
](
@ref
)
"""
function cov_AD(vobs::Vector{ADerrors.uwreal},ws::ADerrors.wspace; biased::Bool=true, info::Bool=false)
function cov_AD(vobs::
Abstract
Vector{ADerrors.uwreal},ws::ADerrors.wspace; biased::Bool=true, info::Bool=false)
ids = ADerrors.unique_ids_multi(vobs, ws)
nid = length(ids)
iw = zeros(Int64,nid)
...
...
@@ -348,7 +348,7 @@ function calc_gamma(a1::ADerrors.uwreal,a2::ADerrors.uwreal,id::Int64,ws::ADerro
return info ? (cov, Dict(ids.=>iw)) : cov
end
cov_AD(vobs::Vector{ADerrors.uwreal};biased::Bool=false) = cov_AD(vobs,ADerrors.wsg,biased=biased)
cov_AD(vobs::
Abstract
Vector{ADerrors.uwreal};biased::Bool=false) = cov_AD(vobs,ADerrors.wsg,biased=biased)
"""
chiexp
(
hess
,
C
,
W
)
...
...
src/juobs_tools.jl
View file @
8a3fa1f9
...
...
@@ -1649,7 +1649,7 @@ function pvalue(chisq::Function,
W
::
AbstractArray
{
Float64
,
2
};
wpm
::
Union
{
Dict
{
Int64
,
Vector
{
Float64
}},
Dict
{
String
,
Vector
{
Float64
}},
Nothing
}
=
Dict
{
Int64
,
Vector
{
Float64
}}(),
nmc
::
Int64
=
5000
,
C
::
AbstractMatrix
{
Float64
}
=
ADerrors
.
cov
(
data
,
wpm
))
C
::
AbstractMatrix
{
Float64
}
=
GammaMethod
.
cov_AD
(
data
,
wpm
))
n
=
length
(
xp
)
# Number of fit parameters
m
=
length
(
data
)
# Number of data
...
...
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