firecrown.metadata.two_point.Window

firecrown.metadata.two_point.Window#

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

Bases: YAMLSerializable

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 (None | 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.

__eq__(other)

Equality test for Window objects.

__init__(*, ells, weights[, ...])

param ells:

__repr__()

Return repr(self).

Inherited from YAMLSerializable

to_yaml()

Return the YAML representation of the object.

from_yaml(yaml_str)

Load the object from YAML.


__eq__(other)[source]#

Equality test for Window objects.

Return type:

bool

__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