Changeset 3757
- Timestamp:
- Apr 21, 2005, 3:32:15 PM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r3744 r3757 1 %%% $Id: ChangeLogSDRS.tex,v 1.8 7 2005-04-21 23:48:56price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.88 2005-04-22 01:32:15 price Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 538 538 \item Add \code{PS_META_TIME} to \code{psMetadataType} 539 539 \item Changed \code{psPixels} to vector-like array of \code{psPixelCoord}. 540 \end{itemize} 540 \item After conversation with GG: 541 \begin{itemize} 542 \item Mention that Chebyshev domain should only be from -1 to +1, but won't restrict. 543 \item Type for \code{psSpline1D} is F32 only. 544 \item Matrix functions return \code{NULL} in the event of an error. 545 \item Changed API for \code{psVectorFitSpline1D}. 546 \item Removed pre-defined LM minimization functions; these will be defined in the Modules SDRS. 547 \end{itemize} 548 549 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r3744 r3757 1 %%% $Id: psLibSDRS.tex,v 1.20 4 2005-04-21 23:48:57price Exp $1 %%% $Id: psLibSDRS.tex,v 1.205 2005-04-22 01:32:15 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 2224 2224 use Chebyshev polynomials ($\sum_{i=0}^n a_i T_i(x)$), which have 2225 2225 properties which are useful in the modeling of data over a defined 2226 domain. 2226 domain. Note that Chebyshev polynomials should only have inputs in 2227 the range $-1 \le x \le +1$ (because they are bounded over this 2228 range), but we will not enforce this. 2227 2229 2228 2230 This leads us to define the following polynomial types: … … 2339 2341 implementation). The \code{knots} member specifies the boundaries 2340 2342 between each spline piece (including the two ends). The \code{knots} 2341 vector may be of type U32 , F32 or F64.2343 vector may be of type U32 or F32. 2342 2344 2343 2345 Of course, we require the appropriate constructors and destructor: … … 2368 2370 2369 2371 \begin{verbatim} 2370 psF64psSpline1DEval(const psSpline1D *spline, float x);2372 float psSpline1DEval(const psSpline1D *spline, float x); 2371 2373 psVector *psSpline1DEvalVector(const psSpline1D *spline, const psVector *x); 2372 2374 \end{verbatim} … … 2487 2489 for types \code{psF32}, \code{psF64}. 2488 2490 2489 \subsubsubsection{Pre-defined Functions for LM}2490 2491 We define some commonly used functions for use with the LM2492 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}, the2500 normalization, center, and standard deviation of a Gaussian to be fit,2501 and as \code{x}, a vector containing a single value. It shall return2502 the value of the Gaussian at the value, and the derivatives2503 (\code{deriv}) with respect to each of the parameters.2504 2505 \code{psMinimizeChi2LMGauss2D} shall take, as \code{params}, the2506 normalization, center (two values), standard deviation (two values)2507 and position angle of a 2-dimensional Gaussian, and as \code{x}, a2508 vector containing a position, $(x,y)$. It shall return the value of2509 the 2-dimensional Gaussian at the specified point, along with the2510 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. 2511 2513 2512 2514 \subsubsection{Powell} … … 2587 2589 2588 2590 \begin{verbatim} 2589 psSpline1D *psVectorFitSpline1D( psSpline1D *mySpline,2590 const psVector * x,2591 const psVector *y);2591 psSpline1D *psVectorFitSpline1D(const psVector *x, 2592 const psVector *y 2593 int nKnots); 2592 2594 \end{verbatim} 2593 2595 \code{psVectorFitSpline1D} shall return the spline that best fits the 2594 2596 given 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}. 2597 The function shall construct a new \code{psSpline1D} using 2598 \code{nKnots} knots uniformly distributed over \code{x}. As is the 2599 case for \code{psVectorFitPolynomial1D}, if \code{x} is \code{NULL}, 2600 then the index of \code{y} shall be used as the ordinate. This 2601 function must be valid only for types \code{psF32}, \code{psF64}. 2601 2602 2602 2603 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 3226 3227 \end{itemize} 3227 3228 The corresponding APIs follow. 3229 3230 In the event of an error, the matrix functions shall return \code{NULL}. 3228 3231 3229 3232 \begin{verbatim}
Note:
See TracChangeset
for help on using the changeset viewer.
