# How to set input parameters when using an ROQ basis
- An ROQ basis has certain ranges of validity for different parameters which must be taken into account when setting the values of the minimum, maximum frequency, chirp mass etc.
- Once `roq_params` is set we can derive the other parameters as follow:
# 1: sets the PSDs from official GWTC-1 open PSD data; 2: computes PSDs using Welch methods from gwosc open strain data; 3: uses bilby's analytical pre-stored PSD files.
psd=3
# Indices of the parameters to run the hmc on. Other are kept fixed.
param_indices=0,1,2,3,4,5,6,7,8
# Indices of the parameters where numerical gradients are going to be used instead of analytical formula if using the `FullHybridGradient_LeapFrog()` function
param_indices_fullhybrid=0,2,3
# -log10() of the offset used for central differencing on each parameter. Default is '707077777' meaning conf.param_offsets = [1e-07, 0, 1e-07, 0, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07]. 0 Means analytical formula is used if available.
param_offsets=7,0,7,0,7,7,7,7,7
# Method to use to compute the gradient of the log-likelihood. Use `dlogL1` to use dlogL = <s|dh> - <h|dh>, `dlogL2` for dlogL = logL(p+offset) - logL(p-offset).
dlogL=dlogL1
phase_marginalization=False
[hmc]
# Total number of trajectories of HMC
n_traj_hmc_tot=1500
# Number of trajectories using numericalgradients in phase 1.
n_traj_fit=1500
# Number of iterations if phase1 loop to go over for this run. This permits to split phase1 into several chunks. If set to 0, then the value will be set to that of n_traj_fit
n_phase1_for_this_run=800
# Number of points used to sub-select points in Ordered Look-Up Tables for local fit bimodal parameters like (cos(inc), psi, logD)
n_fit_1=2000
# Number of points sub-selected from the above n1 ones to perform a linera fit
n_fit_2=200
# Length of numerical trajectories during phase1
length_num_traj=200
# = epsilon * 1000 where espilon is the stepsize of trajectories used for phase1.
epsilon0=5
[priors]
# Priors
# For all parameters known to lalinference, the min and max default prior can be overwritten with
# parname-min=MIN
# parname-max=MAX
# The starting point for the MCMC chain(s) can be specified with
# parname=START
# Parameters can be fixed to some value with
# fix-parname=FIXVALUE
# currently known parameters, together with default [min-max] are (radians for angle, Mpc for distance, Msun for masses)
# time Waveform time [trigtime-0.1-trigtime+0.1]
# chirpmass Chirpmass [1,15.3]
# eta Symmetric massratio (needs --use-eta) [0,0.0312]
# q Asymmetric massratio (a.k.a. q=m2/m1 with m1>m2) [0.033,1]
# phase Coalescence phase [0,2Pi]
# costheta_jn Cosine of angle between J and line of sight [-1,1]
# logdistance Log Distance [log(1),log(2000)]
distance-max=70
distance-min=1e-6
# rightascension Rightascension [0,2Pi]
# declination Declination [-Pi/2,Pi/2]
# polarisation Polarisation angle [0,Pi]
# Spin Parameters:
# a_spin1 Spin1 magnitude [-1,1] for aligned, [0,1] for precessing
# a_spin2 Spin2 magnitude [-1,1] for aligned, [0,1] for precessing
# tilt_spin1 Angle between spin1 and orbital angular momentum [0,Pi]
# tilt_spin2 Angle between spin2 and orbital angular momentum [0, Pi]
# phi_12 Difference between spins' azimuthal angles [0,2Pi]
# phi_jl Difference between total and orbital angular momentum azimuthal angles [0,2Pi]
# Tidal parameters (requires tidal= or tidalT=):
# lambda1 lambda1 [0,3000]
# lambda2 lambda2 [0,3000]
# lambdaT lambdaT [0,3000]
# dLambdaT dLambdaT [-500,500]
# Equation of State parameters (requires 4PolyEOS=):
# logp1 logp1 [33.6,35.4]
# gamma1 gamma1 [2.0,4.5]
# gamma2 gamma2 [1.1,4.5]
# gamma3 gamma3 [1.1,4.5]
# Settings for allowed component masses in Solar Masses, with default values
comp-max=2.6
comp-min=1.0
# Allowed total masses in Msun (note, used together with component masses, mc,q,eta priors may lead to inconsistencies. Be careful!)
# 1: sets the PSDs from official GWTC-1 open PSD data; 2: computes PSDs using Welch methods from gwosc open strain data; 3: uses bilby's analytical pre-stored PSD files.
psd=3
# Indices of the parameters to run the hmc on. Other are kept fixed.
param_indices=1,2
param_indices=0,1,2,3,4,5,6,7,8
# Indices of the parameters where numerical gradients are going to be used instead of analytical formula if using the `FullHybridGradient_LeapFrog()` function
param_indices_fullhybrid=0,2,3
# -log10() of the offset used for central differencing on each parameter. Default is '707077777' meaning conf.param_offsets = [1e-07, 0, 1e-07, 0, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07]. 0 Means analytical formula is used if available.
...
...
@@ -22,11 +22,11 @@ phase_marginalization = False
[hmc]
# Total number of trajectories of HMC
n_traj_hmc_tot=100
n_traj_hmc_tot=10
# Number of trajectories using numericalgradients in phase 1.
n_traj_fit=100
n_traj_fit=10
# Number of iterations if phase1 loop to go over for this run. This permits to split phase1 into several chunks. If set to 0, then the value will be set to that of n_traj_fit
n_phase1_for_this_run=1500
n_phase1_for_this_run=800
# Number of points used to sub-select points in Ordered Look-Up Tables for local fit bimodal parameters like (cos(inc), psi, logD)
n_fit_1=2000
# Number of points sub-selected from the above n1 ones to perform a linera fit