mirror of
				https://asciireactor.com/otho/psdlag-agn.git
				synced 2025-10-31 02:28:03 +00:00 
			
		
		
		
	adding new scripts for completely all publication plots
This commit is contained in:
		
							parent
							
								
									74be4ca24c
								
							
						
					
					
						commit
						9453dc0873
					
				
							
								
								
									
										2
									
								
								analyse.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								analyse.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| @ -11,7 +11,7 @@ set logscale x | ||||
| 
 | ||||
| set ylabel "Lag [days]" | ||||
| #set yrange [%YMIN:%YMAX] | ||||
| set yrange [-5:7] | ||||
| #set yrange [-5:7] | ||||
| set key outside | ||||
| set key center bottom | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										23
									
								
								scripts/tophat_fft.pl
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								scripts/tophat_fft.pl
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,23 @@ | ||||
| #!/usr/bin/env perl | ||||
| 
 | ||||
| use feature say; | ||||
| use utf8;  | ||||
| use PDL::FFT; | ||||
| 
 | ||||
| my $PI = 3.1415926539; | ||||
| my $N = 64; | ||||
| my ($series, $other_series); | ||||
| for (my $k=0; $k<$N; $k++) { | ||||
|   $series->[$k] = sin(4*$k*$PI/$N) + cos(6*$k*$PI/$N); | ||||
| } | ||||
| my $fft = new Math::FFT($series); | ||||
| my $coeff = $fft->rdft(); | ||||
| my $spectrum = $fft->spctrm; | ||||
| my $original_data = $fft->invrdft($coeff); | ||||
| 
 | ||||
| for (my $k=0; $k<$N; $k++) { | ||||
|   $other_series->[$k] = sin(16*$k*$PI/$N) + cos(8*$k*$PI/$N); | ||||
| } | ||||
| my $other_fft = $fft->clone($other_series); | ||||
| my $other_coeff = $other_fft->rdft(); | ||||
| my $correlation = $fft->correl($other_fft); | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user