Public Member Functions | |
def | __call__ |
def | __init__ |
def | pp |
Public Attributes | |
ed | |
edges | |
n | |
name |
Definition at line 329 of file plotscripts.py.
def plotscripts::SawTeethFunction::__init__ | ( | self, | |
name | |||
) |
Definition at line 330 of file plotscripts.py.
def plotscripts::SawTeethFunction::__call__ | ( | self, | |
xx, | |||
par | |||
) |
Definition at line 337 of file plotscripts.py.
00338 : 00339 # wrap x in the most negative phi sector into positive phi 00340 x = xx[0] 00341 if x < self.ed[0]: x += 2*pi 00342 # locate sector 00343 for i in range(0,self.n): 00344 if x <= self.ed[i]: continue 00345 if x > self.ed[i+1]: continue 00346 return par[i*2] + par[i*2+1]*(x - self.ed[i]) return 0
def plotscripts::SawTeethFunction::pp | ( | self | ) |
Definition at line 347 of file plotscripts.py.
Definition at line 330 of file plotscripts.py.
Definition at line 330 of file plotscripts.py.
Definition at line 330 of file plotscripts.py.
Definition at line 330 of file plotscripts.py.