Utils

Utilities for Earth detectors (in functions_earth.py).

ind_masses(Mch, eta) Calculating the individual masses of binary from given chirp mass M and symmetric mass ratio eta.
sym_ratio(m1, m2) Calculating the symnetric mass ratio eta from given m1 and m2.
chirp_mass(m1, m2) Calculating the chirp mass from given m1 and m2.
rho_sq_core(noise_tab, mod_shape[, f_up]) Calculating rho sq.
fis_inf_matr(part_mat, noise_tab[, f_up, numpar]) The function calculates the Fisher information matrix.
errors(FIM) To return errors from Fisher Information Matrix.
FIM_conv_matr(m1, m2, dimension) To convert the FIM from base (M,eta) to (m1,m2).

Class to describe the cosmological model (in cosmology.py).

class gwtoolbox.cosmology.Cosmology[source]

A class to define cosmological model.

set_cosmo(cosmoID=None, H0=None, Om0=None)[source]

Set cosmological model.

Parameters:
  • cosmoID (Optional[string]) – name of cosmological model, if None function set the initial model
  • H0 (Optional[float]) – value of Hubble constant
  • Om0 (Optional[float]) – value of Omega matter
Returns:

cosmological model

Return type:

(class)

Plotting functions (in plots.py and plotshtml.py).

plot_vs(xs, ys, labels) simple plot
plot_hist(xs, label) plot histogram
plot_noise(xs, ys) plot noise curve
plot_noise_withdefault(xs, ys, xd, yd) plot noise curve (new and default)