<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998) originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Fitting of data</TITLE> <META NAME="description" CONTENT="Fitting of data"> <META NAME="keywords" CONTENT="vol2"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <LINK REL="STYLESHEET" HREF="vol2.css"> <LINK REL="previous" HREF="node25.html"> <LINK REL="up" HREF="node24.html"> <LINK REL="next" HREF="node27.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1762" HREF="node27.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1759" HREF="node24.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1755" HREF="node25.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1761" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1763" HREF="node27.html">Analysis of Results</A> <B> Up:</B> <A NAME="tex2html1760" HREF="node24.html">Extraction of Information</A> <B> Previous:</B> <A NAME="tex2html1756" HREF="node25.html">Search Algorithms</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00542000000000000000"> Fitting of data</A> </H2> The final step in data reduction is the extraction of astrophysical parameters from the data. This is often done by fitting a parameterized model of the objects to the data by means of least squares and maximum likelihood methods (see Section <A HREF="node14.html#estim">2.1.3</A>). The correct weighting of data is important in order to use all information in the image and minimize the effects of noise on the final parameters. For stellar images or line profiles, either analytical functions (e.g. weighted Lorentzian-Gaussian profiles) or empirical models of the PSF are used to obtain flux and shape parameters. Very elaborate models may be applied to more complex objects such as galaxies where the flux are decomposed in a set of different components e.g. bulge, disk, bar and spiral. <P> When a set of objects have similar features and their relative shifts should be determined, the correlation between them and a template object <I>T</I>is analyzed using the cross-correlation function : <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} C(m,n) = \frac{\sum_j \sum_k I(j,k)T(j-m,k-n)}{\sum_j \sum_k I(j,k)^2} \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:cross-cor"> </A><IMG WIDTH="385" HEIGHT="66" SRC="img119.gif" ALT="\begin{displaymath}C(m,n) = \frac{\sum_j \sum_k I(j,k)T(j-m,k-n)}{\sum_j \sum_k I(j,k)^2} \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.31)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> where <I>I</I> is the object. Since this function is 1 for a perfect match between object and template, the maximum value will indicate how similar the objects are. The location of the main peak gives the translation and is used in spectroscopy to determine radial velocities of stars. This is shown in Figure <A HREF="node26.html#fig:cross-cor">2.12</A> where the normalized spectra of two early type stars are cross-correlated. Since only the spectral lines should be used, it is important to subtract or normalize the continuum to avoid interference from it. <BR> <DIV ALIGN="CENTER"><A NAME="fig:cross-cor"> </A><A NAME="833"> </A> <TABLE WIDTH="50%"> <CAPTION><STRONG>Figure 2.12:</STRONG> Two normalized early type spectra used as template (A1) and object (A2) yield the cross-correlation function (B).</CAPTION> <TR><TD><IMG WIDTH="1106" HEIGHT="542" SRC="img120.gif" ALT="\begin{figure}\psfig{figure=fig12_curve.eps,width=15cm,clip=} \end{figure}"></TD></TR> </TABLE> </DIV> <BR> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html1762" HREF="node27.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1759" HREF="node24.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1755" HREF="node25.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1761" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1763" HREF="node27.html">Analysis of Results</A> <B> Up:</B> <A NAME="tex2html1760" HREF="node24.html">Extraction of Information</A> <B> Previous:</B> <A NAME="tex2html1756" HREF="node25.html">Search Algorithms</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-15</I> </ADDRESS> </BODY> </HTML>