コード例 #1
0
ファイル: dftvectors.py プロジェクト: matteobachetti/presto
 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)
コード例 #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)
コード例 #3
0
ファイル: dftvectors.py プロジェクト: matteobachetti/presto
def vector_phase(vector):
   return umath.arctan2(vector[-1].imag, vector[-1].real)
コード例 #4
0
ファイル: dftvectors.py プロジェクト: matteobachetti/presto
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)
コード例 #5
0
def vector_phase(vector):
    return umath.arctan2(vector[-1].imag, vector[-1].real)
コード例 #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)