![]() |
![]() |
Public Member Functions | |
def | __call__ |
def | __init__ |
def | pp |
Public Attributes | |
ed | |
edges | |
n | |
name |
Definition at line 362 of file plotscripts.py.
def plotscripts::SawTeethFunction::__init__ | ( | self, | |
name | |||
) |
Definition at line 363 of file plotscripts.py.
def plotscripts::SawTeethFunction::__call__ | ( | self, | |
xx, | |||
par | |||
) |
Definition at line 370 of file plotscripts.py.
00371 : 00372 # wrap x in the most negative phi sector into positive phi 00373 x = xx[0] 00374 if x < self.ed[0]: x += 2*pi 00375 # locate sector 00376 for i in range(0,self.n): 00377 if x <= self.ed[i]: continue 00378 if x > self.ed[i+1]: continue 00379 return par[i*2] + par[i*2+1]*(x - self.ed[i]) return 0
def plotscripts::SawTeethFunction::pp | ( | self | ) |
Definition at line 380 of file plotscripts.py.
Definition at line 363 of file plotscripts.py.
Definition at line 363 of file plotscripts.py.
Definition at line 363 of file plotscripts.py.
Definition at line 363 of file plotscripts.py.