make_cosine_basis¶
-
hcipy.mode_basis.
make_cosine_basis
(grid, fourier_grid, sort_by_energy=True)¶ Make a cosine basis.
Repeated frequencies will not be repeated in this mode basis. This means that opposite points in the fourier_grid will be silently ignored.
- Parameters
- gridGrid
The
Grid
on which to calculate the modes.- fourier_gridGrid
The grid defining all frequencies.
- sort_by_energybool
Whether to sort by increasing energy or not.
- Returns
- ModeBasis
The mode basis containing all cosine modes.