# 9.4.2 The fitting

The fitting is performed using forward modelling, where simulations of Gaia observations are compared to the observed windows. This forward model relies on the Radon transform as described in detail in Krone-Martins et al. (2013).

## The Radon transform

The Radon transform offers a good description of how Gaia rectangular pixels and windowing scheme transforms the continuous two-dimensional fluxes of sources on the sky into the Gaia one dimensional observations. For extended objects such as galaxies or host galaxies of quasars, Gaia observations are actually samplings of the object signal in the Radon space.

The Radon transform has not been extensively used in the astronomical community or other scientific aspects (see (Lanzavecchia et al. 1999; Starck, J. L. et al. 2003)). Recent studies suggest that using the Radon transform allows to better characterise the position angles of galaxies (Stark et al. 2018). In the ${\mathbb{R}}^{2}$, the Radon transform of a certain function $f(x,y)$ is defined as all line integrals of $f(x,y)$ over all lines $L$: $\stackrel{\u02c7}{f}={\int}_{L}f(x,y)ds.$ For lines with a certain angle $\varphi $ with respect to the original reference system, the rotated coordinate system is written as

$$\left(\begin{array}{c}\hfill x\hfill \\ \hfill y\hfill \end{array}\right)=\left(\begin{array}{cc}\hfill \mathrm{cos}\varphi \hfill & \hfill -\mathrm{sin}\varphi \hfill \\ \hfill \mathrm{sin}\varphi \hfill & \hfill \mathrm{cos}\varphi \hfill \end{array}\right)\left(\begin{array}{c}\hfill \rho \hfill \\ \hfill s\hfill \end{array}\right),$$ | (9.1) |

accordingly, $\stackrel{\u02c7}{f}$ can be written explicitly:

$$\stackrel{\u02c7}{f}(\rho ,\varphi )={\int}_{-\mathrm{\infty}}^{\mathrm{\infty}}f(\rho \mathrm{cos}\varphi -s\mathrm{sin}\varphi ,\rho \mathrm{sin}\varphi +s\mathrm{cos}\varphi )\mathit{d}s.$$ |

When the function $\stackrel{\u02c7}{f}(p,\varphi )$ is known for all the $(\rho ,\varphi )$ the Radon transform of the function $f(x,y)$ is known. The space of the coordinates $(\rho ,\varphi )$ is known as Radon space, and its sampling is known as sinogram.

## The forward modelling

For the construction of the forward model a two-dimensional over-sampled synthetic image of the source is produced. The parameters of the profiles being randomly trialled in a bounded domain (see Table 9.1).

Afterwards, given the scan angles in which the object was observed by Gaia, the numeric Radon transform of the resulting array is computed. Finally, the binning of the SM and AF windows are applied to extract synthetic AF and SM windows to be compared to the observational data.

The observations of a source as well as the synthetic observations are organised in two ‘sinograms’ presenting against the transit angle, the flux of the samples of the median-AF windows on one side and of the SM windows on the other.

The fitting is then performed as the solution for $mi{n}_{p}={\parallel f(p)-d\parallel}^{2}$, where $p$ is the vector with the model parameters at the solution, $f(p)$ is the forward model computed with the parameters $p$ and $d$ are the observed window (AF and SM) data.

This optimisation problem is solved with a hybrid optimiser, on a two step strategy. First an approximate global optimisation (using multivariate normal distribution) is performed, to locate the region of the parameter-space where the L2-norm global optimum is likely to be found. This algorithm starts by generating randomly (using a uniform distribution) $\mathrm{10\hspace{0.17em}000}$ sets of parameters using the domains of search described in Table 9.1. Then, the L2-norm is computed between the observed samples (SM and median AF) and the computed ones. The 30 best sets of parameters having the lowest norm are kept for computing statistics such as the mean, standard deviation and covariance matrix. Using these values and the multivariate normal distribution $\mathrm{10\hspace{0.17em}000}$ sets of parameters are re-generated. These last steps are executed till it attains a certain level of convergence. Several tests are applied to stop this process, such as the number of iterations (less than 500), or the number of consecutive iterations not improving the convergence. Then, the output of the global optimisation is used as a initial step to a local optimisation (updating therefore the boundaries of parameters used). The local optimisation considered is CMAES (Hansen 2006) that is applied to accelerate the convergence and locate more efficiently the problem optimal solution. Moreover, the adoption of the local optimiser allows the estimation of the optimisation errors at the solution.

The L2-norm is calculated as the weighted sum of two l2 norms as follows:

$$L2=\frac{\sqrt{\sum {(S{M}_{i}-{d}_{S{M}_{i}})}^{2}}}{{N}_{SM}}+\frac{\sqrt{\sum {(A{F}_{i}-{d}_{A{F}_{i}})}^{2}}}{{N}_{AF}}$$ |

where $SM$ and $AF$ corresponds to aligned and binned SM and AF windows, ${d}_{SM}$ and ${d}_{AF}$ to windows extracted from the simulation, ${N}_{SM}$ and ${N}_{AF}$ the number of valid windows for SM and AF.

The convergence is reached when the algorithm attains a certain amount of iterations or when the five new random set of parameters did not improve the convergence function.

Profile | ${\mathrm{I}}_{C}$ | ${\mathrm{I}}_{Re}$ | $Re$ | e | PA | Sérsic Index |

Galaxy Sérsic profile | - | 0-2000 | 30-8000 | 0-0.99 | 0-180 | 0.5-8 |

Galaxy de Vaucouleurs profile | - | 0-2000 | 30-8000 | 0-0.99 | 0-180 | |

Host galaxy Sérsic profile | - | 0-200 | 39.4-8000 | 0.01-0.8 | 0-180 | 0.5-6 |

Quasar exponential profile | 20-2000 | - | - | - | - | - |