IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2005, 3:32:15 PM (21 years ago)
Author:
Paul Price
Message:

Changes after conversation with George

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r3744 r3757  
    1 %%% $Id: psLibSDRS.tex,v 1.204 2005-04-21 23:48:57 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.205 2005-04-22 01:32:15 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    22242224use Chebyshev polynomials ($\sum_{i=0}^n a_i T_i(x)$), which have
    22252225properties which are useful in the modeling of data over a defined
    2226 domain.
     2226domain.  Note that Chebyshev polynomials should only have inputs in
     2227the range $-1 \le x \le +1$ (because they are bounded over this
     2228range), but we will not enforce this.
    22272229
    22282230This leads us to define the following polynomial types:
     
    23392341implementation).  The \code{knots} member specifies the boundaries
    23402342between each spline piece (including the two ends).  The \code{knots}
    2341 vector may be of type U32, F32 or F64.
     2343vector may be of type U32 or F32.
    23422344
    23432345Of course, we require the appropriate constructors and destructor:
     
    23682370
    23692371\begin{verbatim}
    2370 psF64 psSpline1DEval(const psSpline1D *spline, float x);
     2372float psSpline1DEval(const psSpline1D *spline, float x);
    23712373psVector *psSpline1DEvalVector(const psSpline1D *spline, const psVector *x);
    23722374\end{verbatim}
     
    24872489for types \code{psF32}, \code{psF64}.
    24882490
    2489 \subsubsubsection{Pre-defined Functions for LM}
    2490 
    2491 We define some commonly used functions for use with the LM
    2492 minimization, used for the purpose of performing $\chi^2$ fitting:
    2493 
    2494 \begin{verbatim}
    2495 psMinimizeLMChi2Func psMinimizeLMChi2Gauss1D;
    2496 psMinimizeLMChi2Func psMinimizeLMChi2Gauss2D;
    2497 \end{verbatim}
    2498 
    2499 \code{psMinimizeChi2LMGauss1D} shall take as \code{params}, the
    2500 normalization, center, and standard deviation of a Gaussian to be fit,
    2501 and as \code{x}, a vector containing a single value.  It shall return
    2502 the value of the Gaussian at the value, and the derivatives
    2503 (\code{deriv}) with respect to each of the parameters.
    2504 
    2505 \code{psMinimizeChi2LMGauss2D} shall take, as \code{params}, the
    2506 normalization, center (two values), standard deviation (two values)
    2507 and position angle of a 2-dimensional Gaussian, and as \code{x}, a
    2508 vector containing a position, $(x,y)$.  It shall return the value of
    2509 the 2-dimensional Gaussian at the specified point, along with the
    2510 derivatives with respect to each of the parameters.
     2491%% \subsubsubsection{Pre-defined Functions for LM}
     2492
     2493%% We define some commonly used functions for use with the LM
     2494%% minimization, used for the purpose of performing $\chi^2$ fitting:
     2495
     2496%% \begin{verbatim}
     2497%% psMinimizeLMChi2Func psMinimizeLMChi2Gauss1D;
     2498%% psMinimizeLMChi2Func psMinimizeLMChi2Gauss2D;
     2499%% \end{verbatim}
     2500
     2501%% \code{psMinimizeChi2LMGauss1D} shall take as \code{params}, the
     2502%% normalization, center, and standard deviation of a Gaussian to be fit,
     2503%% and as \code{x}, a vector containing a single value.  It shall return
     2504%% the value of the Gaussian at the value, and the derivatives
     2505%% (\code{deriv}) with respect to each of the parameters.
     2506
     2507%% \code{psMinimizeChi2LMGauss2D} shall take, as \code{params}, the
     2508%% normalization, center (two values), standard deviation (two values)
     2509%% and position angle of a 2-dimensional Gaussian, and as \code{x}, a
     2510%% vector containing a position, $(x,y)$.  It shall return the value of
     2511%% the 2-dimensional Gaussian at the specified point, along with the
     2512%% derivatives with respect to each of the parameters.
    25112513
    25122514\subsubsection{Powell}
     
    25872589
    25882590\begin{verbatim}
    2589 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,
    2590                                 const psVector *x,
    2591                                 const psVector *y);
     2591psSpline1D *psVectorFitSpline1D(const psVector *x,
     2592                                const psVector *y
     2593                                int nKnots);
    25922594\end{verbatim}
    25932595\code{psVectorFitSpline1D} shall return the spline that best fits the
    25942596given combination of ordinates (\code{x}) and coordinates (\code{y}).
    2595 The function shall construct a new \code{psSpline1D} based on knots
    2596 determined from \code{x}: the domain boundaries are the data values in
    2597 \code{x}.  As is the case for \code{psVectorFitPolynomial1D}, if
    2598 \code{x} is \code{NULL}, then the index of \code{y} shall be used as
    2599 the ordinate.  This function must be valid only for types
    2600 \code{psF32}, \code{psF64}.
     2597The function shall construct a new \code{psSpline1D} using
     2598\code{nKnots} knots uniformly distributed over \code{x}.  As is the
     2599case for \code{psVectorFitPolynomial1D}, if \code{x} is \code{NULL},
     2600then the index of \code{y} shall be used as the ordinate.  This
     2601function must be valid only for types \code{psF32}, \code{psF64}.
    26012602
    26022603%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    32263227\end{itemize}
    32273228The corresponding APIs follow.
     3229
     3230In the event of an error, the matrix functions shall return \code{NULL}.
    32283231
    32293232\begin{verbatim}
Note: See TracChangeset for help on using the changeset viewer.