1 from builtins
import range, object
2 from .constants
import HERMITE, LAGUERRE, computeSize
4 __all__ = [
'IndexGenerator',
'HermiteIndexGenerator',
'LaguerreIndexGenerator']
8 """Base class for shapelet index generators. 13 Order of the function indices to generate. 16 __slots__ =
"order",
"size" 23 def make(self, order, basisType):
24 if basisType == HERMITE:
26 elif basisType == LAGUERRE:
34 """Iterable that generates tuples of indices. 39 the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 41 the order of the x expansion 43 the order of the y expansion 48 for n
in range(0, self.
order+1):
49 for nx
in range(0, n+1):
55 """Iterable that generates tuples of indices. 60 the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 62 indices of the polar shapelet expansion (see BasisTypeEnum). 64 True, if this is the real part of the coefficient. 69 for n
in range(0, self.
order+1):
75 yield (i, p, q,
False)
int computeSize(int order)
Return the size of the coefficient vector for the given order.
def make(self, order, basisType)
def __init__(self, order)