Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isisscripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
20
Issues
20
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
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
remeis
isisscripts
Commits
6d789fdf
Commit
6d789fdf
authored
Jul 21, 2023
by
Ole Koenig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RMS uncertainty calculation
parent
871be787
Pipeline
#6671
passed with stages
in 42 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/data/timing/foucalc.sl
src/data/timing/foucalc.sl
+1
-1
src/data/timing/lag_energy_spectrum.sl
src/data/timing/lag_energy_spectrum.sl
+1
-1
No files found.
src/data/timing/foucalc.sl
View file @
6d789fdf
...
...
@@ -191,7 +191,7 @@ define foucalc()
variable sigrms = sqrt( sum(signormpsd[[idxmin:idxmax-1]] * df) );
variable noirms = sqrt( sum(noinormpsd[[idxmin:idxmax-1]] * df) );
variable errrms = sqrt((
2.*sigrms^2*noirms^2+noirms^4)/(2.*numseg*length(idx)*sigrms^2));
variable errrms = sqrt((
4.*sigrms^2*noirms^2+2.*noirms^4)/(numseg*length(idx)*sigrms^2)); % Vaughan+03 Eq. 11
set_struct_field(rmsquant, "sigrms"+istr, sigrms);
set_struct_field(rmsquant, "errrms"+istr, errrms);
set_struct_field(rmsquant, "noirms"+istr, noirms);
...
...
src/data/timing/lag_energy_spectrum.sl
View file @
6d789fdf
...
...
@@ -388,7 +388,7 @@ define lag_energy_spectrum(lc_list, dimseg) {
% copy-paste the calculation here!)
variable sigrms = sqrt( sum(fouquant.signormpsd2[[fouquant_f.idxmin:fouquant_f.idxmax-1]] * fouquant_f.df) );
variable noirms = sqrt( sum(fouquant.noinormpsd2[[fouquant_f.idxmin:fouquant_f.idxmax-1]] * fouquant_f.df) );
variable errrms = sqrt((4.*sigrms^2*noirms^2+2.*noirms^4)/(numseg*fouquant_f.n_freqs*sigrms^2));
variable errrms = sqrt((4.*sigrms^2*noirms^2+2.*noirms^4)/(numseg*fouquant_f.n_freqs*sigrms^2));
% Vaughan+03 Eq. 11
dat.rms[ii,jj] = sigrms;
dat.rms_err[ii,jj] = errrms;
...
...
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