Questions tagged [phase]

phase is angular shift between periodic signals.

phase is angular shift between periodic signals

  • for example signal x1(t)=cos(t) is the same as x2(t)=sin(t+PI/2)
  • angle PI/2 is the phase (angular shift) between sin(t) and cos(t)
  • phase is also used as angular coordinate for polar representations of phasor commonly used in electrical engineering
  • phase distortions of signals are called jitter
238 questions
1
vote
0 answers

Fourier Transform shift property implementation in pytorch

I'm trying to implement the phase shift property of Fourier Transform with pytorch. What I mean by the shift property is this: I think that I've got most of the things correctly but somehow get a noisy image. I'm having a hard time solving this…
이민규
  • 37
  • 2
1
vote
2 answers

Is there a tool or script to split a phased VCF into two separate haploid VCFs, one for each haplotype? (linux)

I have a phased .vcf file generated by longshot from a MinION sequencing run of diploid, human DNA. I would like to be able to split the file into two haploid files, one for haplotype 1, one for haplotype 2. Do any of the VCF toolkits provide this…
rusalkaguy
  • 133
  • 1
  • 6
1
vote
2 answers

Phase angle from FFT using atan2 - weird behaviour. Phase shift offset? Unwrapping?

I'm testing and performing simple FFT's and I'm interested in phase shift. I geneate simple array of 256 samples with sinusoid with 10 cycles. I perform an FFT of those samples and receiving complex data (2x128). Than I calculate magnitude of those…
1
vote
0 answers

How to re-wrap phase image

I got several phase images ([-pi,pi]),and these images are interfeogram. I succeed in wrapping unwrapping velocity image by following code from skimage import exposure image= exposure.rescale_intensity(image, out_range=(0,4*np.pi)) image_wrapped =…
1
vote
1 answer

Calculate relative phase between two angles - python

I'm trying to calculate the relative phase between a time series of two angles. Using below, the angles are measured by the rotation derived from the xy points associated to Label A and Label B. The angles are moving in a similar direction for the…
Chopin
  • 96
  • 1
  • 10
  • 35
1
vote
1 answer

Inaccurate phase returned by np.angle

I am generating 2 sine waves, first one has fundamental frequency = 50 Hz, amplitude=10, phase=0, the second one has fundamental frequency = 100 Hz, amplitude = 5 and phase = np.pi/6 (which is 30degrees). Then I add them up, and perform FFT on the…
thileepan
  • 619
  • 3
  • 8
  • 18
1
vote
0 answers

Plot phase graph from impulse response with delay adjustment

I'm trying to plot the phase graph of an impulse response with python, but the phase looks rather distorted. How can I add a delay to my code, so that the phase graph looks better, like in this example? I know that a have to add a delay of 1024…
joa77
  • 85
  • 1
  • 9
1
vote
1 answer

Find amplitude from a sinusoid equation

I want to find the Amplitude, frequency, time period and phase from this equation. I know how to find the frequency, time period or phase shift but I'm confused if there's any way to find the amplitude from the given information. A/5 *in (1000 +…
Afifa
  • 65
  • 1
  • 7
1
vote
0 answers

Calculate time lags from phase angle differences/phase arrows from waveletComp in r

I am looking at associations between biological and physical variables in time-frequency domain using wavelets and would like to look at the lags between two variables for specific time scales/periods. To do that I calculated and plotted wavelet…
Sil
  • 25
  • 4
1
vote
0 answers

How to execute a task that is created in execution phase?

I am migration from Gradle 4.x to 6.x. Currently I create in the execution phase many dynamic tasks with data from previous steps of the build. The tasks can't be define in the definition phase. If I would create all possible task in the definition…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
1
vote
1 answer

Artificially generated EEG signal

I want to generate EEG data via R and test my phase prediction methods on it and how stable they are aggainst different levels of noise. But my generated "EEG" data seems to be off, I think I need to change the time or so. I really cannot figure it…
Pauwsmaul
  • 23
  • 3
1
vote
0 answers

How to make a phase shift in a Sine wave?

I have a two problems: 1- estimate the phase of an unknown wave, after that 2- correct/change the phase of the investigated signal by adding or subtract to be in the phase of another wave. I used the following code to create a sine wave and tried…
H. H
  • 63
  • 1
  • 6
1
vote
2 answers

How to get phase and frequency of complex CSI for channel impulse responses?

I have measurements of channel impulse responses as complex CSI's. There are two transmitters Alice and Bob and the measurements look like [real0], [img0], [real1], [img1], ..., [real99], [img99] (100 complex values). Amplitude for the Nth value is…
MLDP
  • 11
  • 1
1
vote
1 answer

Why is the initial marking phase in CMS serial

at the moment I'm trying to extend my knowledge about GC algorithms. What I can't comprehend right now is why the first phase of the CMS GC - the initial mark - is displayed everywhere as serial thread. Why isn't it done in parallel like the…
1
vote
1 answer

Magnitude only reconstruction doesn't look correct, am I interpreting this correctly?

I have implemented a method from "Phase retrieval from the magnitude of the Fourier transforms of nonperiodic objects" paper available at: https://pdfs.semanticscholar.org/4796/592751aaa5b316aaefbd5eab09ca51fad580.pdf in which the authors…
Kevinj22
  • 966
  • 2
  • 7
  • 11