GroupedCoefficients¶
- class GC(settings, data)¶
Superclass of GroupedCoefficientsComplex and GroupedCoefficientsReal. A class to hold coefficients belonging to indices in a grouped index set.
Attributes:
- settings¶
List of setting objects (see bellow) - uniquely describes the setting such as the bandlimits
- data¶
Numpy array of dtype float or dtype complex - the vector of coefficients
Constructor:
- GroupedCoefficients(setting, data=nothing)¶
Functions:
- __getitem__(idx)¶
If idx is a tuple that contains integer, this function overloads getitem of GC such that you can do
fhat[(1,3)]to obtain the basis coefficients of the corresponding ANOVA term defined by u.If idx is an integer, this function overloads getitem of GC such that you can do
fhat[1]to obtain the basis coefficient determined by idx.
- __setitem__(idx, Number)¶
If idx is a tuple that contains integer, this function overloads setitem of GC such that you can do
fhat[(1,3)] = [1 2 3].If idx is an integer, this function overloads setitem of GC such that you can do
fhat[1] = 3.
- vec()¶
This function returns the vector of the basis coefficients of self.
- __rmul__(alpha)¶
This function defines multiplication of a number with a GC object.
- __add__(other)¶
This function defines the addition of two GC objects.
- __sub__(other)¶
This function defines the subtraction of two GC objects.
- set_data(data)¶
With this function one can set the data of a GC object.
- variances(j, m)¶
matrix of variances between two basis functions, needed for wavelet basis, since they are not orthonormal.
- class GroupedCoefficientsComplex(GC)¶
A class to hold complex coefficients belonging to indices in a grouped index set.
Constructor:
- GroupedCoefficientsComplex(setting, data=nothing)¶