firecrown.metadata.two_point.Window

firecrown.metadata.two_point.Window#

class firecrown.metadata.two_point.Window(ells, weights, ells_for_interpolation=None)[source]#

Bases: object

The class used to represent a window function.

It contains the ells at which the window function is defined, the weights of the window function, and the ells at which the window function is interpolated.

It may contain the ells for interpolation if the theory prediction is calculated at a different set of ells than the window function.

Parameters:
  • ells (ndarray[Any, dtype[int64]]) –

  • weights (ndarray[Any, dtype[float64]]) –

  • ells_for_interpolation (Optional[ndarray[Any, dtype[int64]]]) –

Public Methods:

__post_init__()

Make sure the weights have the right shape.

n_observations()

Return the number of observations supported by the window function.

__init__(ells, weights[, ells_for_interpolation])

param ells:

__repr__()

Return repr(self).

__eq__(other)

Return self==value.


__eq__(other)#

Return self==value.

__post_init__()[source]#

Make sure the weights have the right shape.

Return type:

None

n_observations()[source]#

Return the number of observations supported by the window function.

Return type:

int