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
9c41ec2e
Commit
9c41ec2e
authored
Sep 20, 2020
by
Alberto Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug corrected in multiple dispatch for chiexp
parent
bcc8dafb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
extra/typical.jl
extra/typical.jl
+4
-4
src/ADerrorsUtils.jl
src/ADerrorsUtils.jl
+2
-2
No files found.
extra/typical.jl
View file @
9c41ec2e
using
ADerrors
# Input of uwreal's
a
=
uwreal
(
rand
(
1000
),
1
)
b
=
uwreal
([
1.0
,
0.1
],
2
)
a
=
uwreal
(
rand
(
1000
),
"White noise"
)
b
=
uwreal
([
1.0
,
0.1
],
"Var with error"
)
p
=
cobs
([
1.0
,
2.0
],
[
1.0
0.1
;
0.1
2.0
],
[
3
,
4
]
)
0.1
2.0
],
"Parameters"
)
# Most common operations.
# You might add something else if
...
...
@@ -58,7 +58,7 @@ y = [0.0802273592699947
-
0.05174734852593241
0.1384913891139784
-
0.05211234898997283
]
dt
=
cobs
(
y
,
sig
,
[
100
+
n
for
n
in
1
:
npt
]
)
dt
=
cobs
(
y
,
sig
,
"Fit data"
)
chisq
(
p
,
d
)
=
sum
(
(
d
.-
p
[
1
])
.^
2
./
dx
.^
2
)
xp
=
[
sum
(
value
.
(
dt
)
./
dx
)
/
sum
(
1.0
./
dx
)]
(
fitp
,
csqexp
)
=
fit_error
(
chisq
,
xp
,
dt
)
...
...
src/ADerrorsUtils.jl
View file @
9c41ec2e
...
...
@@ -204,13 +204,13 @@ chiexp(chisq::Function,
xp
::
Vector
{
Float64
},
data
::
Vector
{
uwreal
};
W
::
Vector
{
Float64
}
=
Vector
{
Float64
}())
=
chiexp
(
chisq
,
xp
,
data
,
Dict
{
Int64
,
Vector
{
Float64
}}(),
W
)
chiexp
(
chisq
,
xp
,
data
,
Dict
{
Int64
,
Vector
{
Float64
}}(),
W
=
W
)
chiexp
(
chisq
::
Function
,
xp
::
Vector
{
Float64
},
data
::
Vector
{
uwreal
},
wpm
::
Dict
{
String
,
Vector
{
Float64
}};
W
::
Vector
{
Float64
}
=
Vector
{
Float64
}())
=
chiexp
(
chisq
,
xp
,
data
,
dict_names_to_id
(
wpm
),
W
)
chiexp
(
chisq
,
xp
,
data
,
dict_names_to_id
(
wpm
),
W
=
W
)
...
...
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