1 from __future__
import absolute_import, division, print_function
2 from builtins
import range, object
3 from .constants
import HERMITE, LAGUERRE, computeSize
8 Base class for shapelet index generators. 11 __slots__ =
"order",
"size" 14 def make(self, order, basisType):
15 if basisType == HERMITE:
17 elif basisType == LAGUERRE:
30 Iterable that generates tuples of (i, nx, ny) in which: 31 - 'i' is the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 32 - 'nx' is the order of the x expansion 33 - 'ny' is the order of the y expansion 38 for n
in range(0, self.
order+1):
39 for nx
in range(0, n+1):
46 Iterable that generates tuples of (i, p, q, re) in which: 47 - 'i' is the overall coefficient index for a 2-d shapelet expansion (just counts from zero) 48 - 'p' and 'q' are the indices of the polar shapelet expansion (see BasisTypeEnum). 49 - 're' is True if this the real part of the coefficient 54 for n
in range(0, self.
order+1):
60 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)