onepower.bnl.NonLinearBias#

class onepower.bnl.NonLinearBias(*args, **kwargs)[source]#

A class to compute the non-linear bias using the Dark Emulator.

Methods

__init__([mass, z_vec, k_vec, h0, sigma_8, ...])

clone(**kwargs)

Create and return an updated clone of the current object.

compute_bnl_darkquest(z, log10M1, log10M2, ...)

Compute the non-linear bias using the Dark Emulator.

get_all_parameter_defaults([recursive])

Dictionary of all parameters and defaults.

get_all_parameter_names()

Yield all parameter names in the class.

get_dependencies(*q)

Determine all parameter dependencies of the quantities in q.

high_k_truncation(k, k_trunc)

Apply high-k truncation to the non-linear bias.

hl_envelopes_idx(data[, dmin, dmax])

Extract high and low envelope indices from a 1D data signal.

low_k_truncation(k, k_trunc)

Apply low-k truncation to the non-linear bias.

parameter_info([names])

Prints information about each parameter in the class.

quantities_available()

Obtain a list of all available output quantities.

rvir(mass)

Compute the virial radius for a given halo mass.

test_cosmo(cparam_in)

Adjust cosmological parameters to be within the range of the Dark Emulator.

update(**kwargs)

Update parameters of the framework with kwargs.

validate()

Perform validation of the input parameters as they relate to each other.

Attributes

A_s

Amplitude of the primordial power spectrum.

bnl

Compute the non-linear bias interpolation function.

create_bnl_interpolation_function

Create an interpolation function for the non-linear bias.

emulator

Initialize the Dark Emulator with the given cosmological parameters.

h0

Hubble parameter.

k_vec

Array of wavenumbers.

mass

Array of halo masses.

minimum_halo_mass

Compute the minimum halo mass for the set of cosmological parameters.

n_s

Spectral index.

ombh2

Return the physical baryon density parameter.

omch2

Return the physical cold dark matter density parameter.

omega_b

Baryon density parameter.

omega_c

Cold dark matter density parameter.

omega_lambda

Dark energy density parameter.

parameter_values

Dictionary of all parameters and their current values

sigma_8

Amplitude of matter fluctuations on 8 Mpc scales.

w0

Dark energy equation of state parameter.

z_dep

If redshift dependence is to be evaluated in Bnl

z_vec

Array of redshifts.