1 from .constants
import HERMITE, LAGUERRE, computeSize
3 __all__ = [
'IndexGenerator',
'HermiteIndexGenerator',
'LaguerreIndexGenerator']
7 """Base class for shapelet index generators. 12 Order of the function indices to generate. 15 __slots__ =
"order",
"size" 22 def make(self, order, basisType):
23 if basisType == HERMITE:
25 elif basisType == LAGUERRE:
33 """Iterable that generates tuples of indices. 38 the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 40 the order of the x expansion 42 the order of the y expansion 47 for n
in range(0, self.
order+1):
48 for nx
in range(0, n+1):
54 """Iterable that generates tuples of indices. 59 the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 61 indices of the polar shapelet expansion (see BasisTypeEnum). 63 True, if this is the real part of the coefficient. 68 for n
in range(0, self.
order+1):
74 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)