Esempio n. 1
0
 def phases(self):
    """
    dftvector.phases():
         Return the accumulated phase (radians) of dftvector.vector.
         The phases are corrected to contain no discontinuities.
         The phase of the first vector component (0.0, 0.0) is
              _not_ returned.
    """
    phases = umath.arctan2(self.vector.imag, self.vector.real)
    return smooth_phases(phases)
Esempio n. 2
0
 def phases(self):
     """
   dftvector.phases():
        Return the accumulated phase (radians) of dftvector.vector.
        The phases are corrected to contain no discontinuities.
        The phase of the first vector component (0.0, 0.0) is
             _not_ returned.
   """
     phases = umath.arctan2(self.vector.imag, self.vector.real)
     return smooth_phases(phases)
Esempio n. 3
0
def vector_phase(vector):
   return umath.arctan2(vector[-1].imag, vector[-1].real)
Esempio n. 4
0
def rzw_phase_model(przw, self):
   przw = przw * Numeric.array([1.0, 1.0, 4.0, 20.0])
   corrvect = add_components(self.rotate(-self.rzw_phases(przw)))
   phases = umath.arctan2(corrvect.imag, corrvect.real)
   weights = self.timefract
   return weights * smooth_phases(phases)
Esempio n. 5
0
def vector_phase(vector):
    return umath.arctan2(vector[-1].imag, vector[-1].real)
Esempio n. 6
0
def rzw_phase_model(przw, self):
    przw = przw * Numeric.array([1.0, 1.0, 4.0, 20.0])
    corrvect = add_components(self.rotate(-self.rzw_phases(przw)))
    phases = umath.arctan2(corrvect.imag, corrvect.real)
    weights = self.timefract
    return weights * smooth_phases(phases)