ENH(fields): compute effective spectra of a simulation #146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a function
effective_cls()
which takes a list of weights for each shell and the angular matter power spectrum and returns an array of the effective spectra for when matter shells are combined using the given weights. This can be used to exactly predict what the angular power spectra coming out of a simulation will be after discretisation.To obtain the angular galaxy power spectrum, a new function
position_weights()
computes the weights corresponding topositions_from_delta()
. To obtain the angular convergence power spectrum, a new functionmulti_plane_weights()
computes the weights corresponding toMultiPlaneConvergence
.Closes: #130
Added: A new function
effective_cls()
which combines power spectra using a list of weights, which models what happens in the simulation.Added: A new function
position_weights()
that returns weights foreffective_cls()
to model the result ofpositions_from_delta()
.Added: A new function
multi_plane_weights()
that returns weights foreffective_cls()
to model the result ofMultiPlaneConvergence
.