il toolbox snag per la simulazione e l'analisi dei dati gravitazionali sergio frasca

Post on 06-Feb-2016

46 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Il toolbox Snag per la simulazione e l'analisi dei dati gravitazionali Sergio Frasca. Gd class. ds class. function d=ds(a) %DS ds (data stream) class constructor % % d=ds(a) -> a is the length % % Data members % % tini1 time of the first sample of y1 - PowerPoint PPT Presentation

TRANSCRIPT

Il toolbox Snag per la simulazione e l'analisi dei dati gravitazionali

Sergio Frasca

Based on MatLab Object-oriented programming Standard line programming ambient GUI operation (GUI) Application development (Partial) porting to C++

Gd class

function d=ds(a)%DS ds (data stream) class constructor%% d=ds(a) -> a is the length%% Data members%% tini1 time of the first sample of y1% tini2 time of the first sample of y2% dt sampling time% len length of chunks% y1 odd chunk (last chunk if not interlaced)% y2 even chunk (last but one chunk if not interlaced)% ind1 index of y1% ind2 index of y2% type type (=0 -> not interlaced no last but one,% =1 -> not interlaced, =2 -> interlaced)% nc1 number of y1 chunk% nc2 number of y2 chunk% lcw last chunk written ("produced")% lcr last chunk read ("served" - for client-server use)% treq time requested (to start)% capt caption% cont control variable

ds class• function d=ds(a)

– %DS ds (data stream) class constructor– %– % d=ds(a) -> a is the length– %– % Data members– %– % tini1 time of the first sample of y1– % tini2 time of the first sample of y2– % dt sampling time– % len length of chunks– % y1 odd chunk (last chunk if not interlaced)– % y2 even chunk (last but one chunk if not interlaced)– % ind1 index of y1– % ind2 index of y2– % type type (=0 -> not interlaced no last but one,– % =1 -> not interlaced, =2 -> interlaced)– % nc1 number of y1 chunk– % nc2 number of y2 chunk– % lcw last chunk written ("produced")– % lcr last chunk read ("served" - for client-server use)– % treq time requested (to start)– % capt caption– % cont control variable

Help window

Snag commands

• % Snag commands• %• % snag - snag command/monitor window; see Snag_ML.doc• %• % General analysis:• %• % da_plot - plots double arrays• % da_stat - statistics for double array• % histoint - integral histogram of an array• % gd_histoint - integral histogram of a gd• % gd_plot - plots gds• % gd_cplot - plots for complex gds• % gd_stat - statistics of gds• % ginproc - graphical input processing (used by ginmenu)• %• % Analysis (in \analysis):• %• % analysis\gd_acorfft - fft autocorrelation or autocovariance• % analysis\gd_crcorfft - fft cross-correlation or cross-covariance• % analysis\atan3 - atan3• % analysis\gd_pows - power spectrum• % analysis\gd_worm - worm analysis• % analysis\gd_hilb - analytical signal• %• % Processing:• %• % gd_smooth - smooths a gd• % gd_play - "plays" a gd

Matlab functions summary

• % Snag commands• %• % snag - snag command/monitor window; see Snag_ML.doc• %• % General analysis: Graphics and statistics• % Analysis (in \analysis): Signal analysis • % Processing: Basic processing • % Settings: Particular GD settings • % Service: Service functions (ui, gin and basic tasks)• % Special m-files: Service functions (ui, gin and basic tasks)• % Demos Demo m-files • % Gravitational Waves (in \gw) GW functions • % Frames analysis Frame analysis • % Class gd (group of data) gd class methods • % Class gd2 (group of data - two dimension) gd2 class methods • % Class ds (data stream) gd class methods • % Class rs (resonance set) gd class methods • % Class rg (ring structure) gd class methods

Function help example

Snag GUI main window

Dialog box example

Gd plot

Complex gd plot

Histogram and statistics

Theoretical spectrum

Experimental spectrum

Simulation program

%dsnoispows1 virgo noise continuous monitoring with comb

l=4096; Some initializationsbuff=zeros(1,3*(l/2));powsout=zeros(1,l);

d=ds(l); DS initializationdt=0.0001;d=edit_ds(d,'dt',dt,'type',1);

frcomb=(1:20)*100; DrawSpect initialization and commandampcomb=zeros(1,20);combw=1;gs=gd_drawspect(dt,l,'virgo','addcomb',combw,frcomb,ampcomb);

sp=y_gd(gs); Spectrum from GD to Double Array

for i =1:20 Loop for noise generation and analysis [d,buff]=noise_ds(d,buff,'spect',sp); powsout=pows_ds(d,powsout,'total','limit',0,5000,'loglog','sqrt','hwindow'); pause(2); pause 2 seconds for visualizationend

Ds running histogramming

GW detector simulation

top related