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
6
votes
2 answers

Why numpy fft return incorrect phase information?

I compare phase and amplitude spectrum in Matlab and numpy. I think Matlab work correct, but numpy compute correct amplitude spectrum, but phase spectrum is strange. How i must change python code for correct computing fft by numpy? Matlab: fs =…
6
votes
1 answer

How to perform ordered tasks in Maven2 build

I am trying to migrate a Java application built by Ant to Maven2. Among other the build perform the following operations: Running a javadoc doclet to find annotated Java files to be externalize later as Web services compile a small part of the…
rperez
  • 8,430
  • 11
  • 36
  • 44
6
votes
2 answers

elasticsearch search phase execution

I'm having issues and I don't know where to turn. Long story short, my web designer left me high and dry and I have no idea what he did and he refuses to answer his phone. I have access to the main page but after that, I'm completely locked out and…
Brandon Vigil
  • 61
  • 1
  • 1
  • 2
5
votes
2 answers

Maven - add custom phase to execute plugin with other configuration

I have two set of integration tests in one maven project - automatic and manual tests. The manual tests are few but tedious - they require pulling the plug of servers etc. I would like to create a separate goal for the manual tests, so i can run…
Alexander Torstling
  • 18,552
  • 7
  • 62
  • 74
5
votes
5 answers

"Phased" execution of functions in javascript

This is my first post on stackoverflow, so please don't flame me too hard if I come across like a total nitwit or if I'm unable ot make myself perfectly clear. :-) Here's my problem: I'm trying to write a javascript function that "ties" two…
FK82
  • 4,907
  • 4
  • 29
  • 42
5
votes
2 answers

Fixing phase unwrapping errors in Numpy

I have a series of unwrapped phases, with some unwrapping errors that consist of a jump of +/- a multiple of Pi: import numpy a = numpy.array([0.5, 1.3, 2.4, 10.3, 10.8, 10.2, 7.6, 3.2, 2.9]) In this example there is a first jump of 2 cycles…
Benjamin
  • 11,560
  • 13
  • 70
  • 119
4
votes
1 answer

How to get Pi-Phase from sound to get a destructive interference in Python

first: I don't know where to put this topic because it's an programming and sound-question. Please comment if it's at the wrong place. But this is my question: How can I load a sound into Python and create the "reverse-sound" of it. So when I play…
Noah Krasser
  • 1,081
  • 1
  • 14
  • 22
4
votes
2 answers

Finding the phase of each harmonics using fft

I use Matlab. I have a sinusoidal signal : X (amp:220/ Freq:50) to which I add 3 harmonics : x1 => (h2) amp:30 / Freq:100 / phase:30° x2 => (h4) amp:10 / Freq:200 / phase:50° x3 => (h6) amp:05 / Freq:300 / phase:90° I sum all the signals together…
KADEM Mohammed
  • 1,650
  • 2
  • 23
  • 45
4
votes
2 answers

JSF skips phases - How to debug that?

I'm debugging a foreign JSF application. The problem is, that I submit a form, but the values aren't carried over. With a phase listener I can see, that the life cycle doesn't run completely through, so to say it skips phase 2 -5: After the restore…
Peter Wippermann
  • 4,125
  • 5
  • 35
  • 48
4
votes
1 answer

Request-scoped beans and datamodel initialization?

UPDATE II: OK, I managed to narrow it down a little. I have a page with a datatable with sorting and filtering functionalities, both taking place in the DB. In other words, I do not use the embedded functionality of the rich:datatable I use, but…
Markos Fragkakis
  • 7,499
  • 18
  • 65
  • 103
4
votes
1 answer

How to get phase angle from FFT for an amplitude modulated signal

I have the measurements of an amplitude modulated signal. I analysed with the fft() matlab function. After I calculate everything by "the book", I have only one problem. The phase of the modulated signal is not ok. Only if I subtract pi/2 form the…
Elod
  • 499
  • 9
  • 25
4
votes
1 answer

With the audio tool sox, how can I determine whether a stereo recording is in fact mono?

I have stereo files (2-channel-WAV) which sound totally like mono recordings. Is there a way to let sox run over the file and output whewther the 2 channels are the same or not? Or is there another command line tool doing this sort of wave…
halloleo
  • 9,216
  • 13
  • 64
  • 122
4
votes
1 answer

How do I find secret mercurial revisions?

I work on a lot of projects and sometimes I'd prefer to just delete my local repositories. However, I am limited in this by my occasional use of the secret phase (as I need to check how my repository differs from the server). Is there a search I can…
Stephen
  • 19,488
  • 10
  • 62
  • 83
3
votes
2 answers

phase correlation using FFTW

Now for phase correlation(two images) I use 1d transform. How to use 2d transform(it will be faster?), how to use wisdom and multythread support? if you give code example is will be better. void phase_correlation2D( IplImage* src, IplImage *tpl,…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
3
votes
2 answers

Plotting and extracting fft phase

Here is a code that compares fft phase plotting with 2 different methods : import numpy as np import matplotlib.pyplot as plt import scipy.fftpack phase = np.pi / 4 f = 1 fs = f*20 dur=10 t = np.linspace(0, dur, num=fs*dur, endpoint=False) y =…
rem
  • 1,131
  • 10
  • 15
1
2
3
15 16