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
8581f735
Commit
8581f735
authored
Sep 22, 2020
by
Javier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small bug fixed (lin_fit)
parent
f31f86ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/juobs_tools.jl
src/juobs_tools.jl
+1
-1
src/juobs_types.jl
src/juobs_types.jl
+2
-2
No files found.
src/juobs_tools.jl
View file @
8581f735
...
@@ -83,7 +83,7 @@ function lin_fit(x::Vector{Float64}, y::Vector{uwreal})
...
@@ -83,7 +83,7 @@ function lin_fit(x::Vector{Float64}, y::Vector{uwreal})
par
=
lin_fit
(
x
,
value
.
(
y
),
err
.
(
y
))
par
=
lin_fit
(
x
,
value
.
(
y
),
err
.
(
y
))
chisq
(
p
,
d
)
=
sum
((
d
.-
p
[
1
]
.-
p
[
2
]
.*
x
)
.^
2
./
err
.
(
y
)
.^
2
)
chisq
(
p
,
d
)
=
sum
((
d
.-
p
[
1
]
.-
p
[
2
]
.*
x
)
.^
2
./
err
.
(
y
)
.^
2
)
(
fitp
,
csqexp
)
=
fit_error
(
chisq
,
value
.
(
par
)
,
y
)
(
fitp
,
csqexp
)
=
fit_error
(
chisq
,
par
,
y
)
return
(
fitp
,
csqexp
)
return
(
fitp
,
csqexp
)
end
end
...
...
src/juobs_types.jl
View file @
8581f735
...
@@ -104,14 +104,14 @@ mutable struct CData
...
@@ -104,14 +104,14 @@ mutable struct CData
vcfg
::
Array
{
Int32
}
vcfg
::
Array
{
Int32
}
re_data
::
Array
{
Float64
}
re_data
::
Array
{
Float64
}
im_data
::
Array
{
Float64
}
im_data
::
Array
{
Float64
}
id
::
Int
id
::
Int
64
CData
(
a
,
b
,
c
,
d
,
e
)
=
new
(
a
,
b
,
c
,
d
,
e
)
CData
(
a
,
b
,
c
,
d
,
e
)
=
new
(
a
,
b
,
c
,
d
,
e
)
end
end
Base
.
copy
(
a
::
CData
)
=
CData
(
a
.
header
,
a
.
vcfg
,
a
.
re_data
,
a
.
im_data
,
a
.
id
)
Base
.
copy
(
a
::
CData
)
=
CData
(
a
.
header
,
a
.
vcfg
,
a
.
re_data
,
a
.
im_data
,
a
.
id
)
mutable struct
Corr
mutable struct
Corr
obs
::
Union
{
Vector
{
uwreal
},
uwreal
}
obs
::
Vector
{
uwreal
}
mu
::
Vector
{
Float64
}
mu
::
Vector
{
Float64
}
gamma
::
Vector
{
String
}
gamma
::
Vector
{
String
}
y0
::
Int64
y0
::
Int64
...
...
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