IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2007, 10:24:34 AM (19 years ago)
Author:
magnier
Message:

adding fitting, evaluation functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070830/psModules/src/objects/pmTrend2D.h

    r14731 r14778  
    55 * @author EAM, IfA
    66 *
    7  * @version $Revision: 1.1.2.1 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-09-04 18:35:51 $
     7 * @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-09-07 20:24:34 $
    99 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1010 */
     
    1717
    1818typedef enum {
    19   PM_TREND_POLY_ORD,
    20   PM_TREND_POLY_CHEB,
    21   PM_TREND_MAP,
     19    PM_TREND_POLY_ORD,
     20    PM_TREND_POLY_CHEB,
     21    PM_TREND_MAP,
    2222} pmTrend2DMode;
    2323
    2424typedef struct {
    25   psPolynomial2D *poly;
    26   psImageMap *map;
    27   pmTrend2DMode mode; // POLY_ORD, POLY_CHEB, MAP
     25    psPolynomial2D *poly;
     26    psImageMap *map;
     27    psStats *stats;
     28    pmTrend2DMode mode; // POLY_ORD, POLY_CHEB, MAP
    2829} pmTrend2D;
    2930
    30 // allocate a pmTrend2D structure.  nX,nY is order for the polynomials, max number of grid cells for
     31// allocate a pmTrend2D structure tied to an image dimensions.  nXtrend,nYtrend is the order for the polynomials, max number of grid cells for
    3132// psImageMap
    32 pmTrend2D *pmTrend2DAlloc (pmTrend2DMode mode, int nXout, int nYout, int nXtrend, int nYtrend, psStats *stats);
     33pmTrend2D *pmTrend2DAlloc (pmTrend2DMode mode, psImage *image, int nXtrend, int nYtrend, psStats *stats);
     34
     35// allocate a pmTrend2D tied to an abstract field with size nXfield,nYfield
     36pmTrend2D *pmTrend2DFieldAlloc (pmTrend2DMode mode, int nXfield, int nYfield, int nXtrend, int nYtrend, psStats *stats);
    3337
    3438bool pmTrend2DFit (pmTrend2D *trend, psVector *x, psVector *y, psVector *f, psVector *df);
    3539
     40double pmTrend2DEval (pmTrend2D *trend, float x, float y);
     41psVector *pmTrend2DEvalVector (pmTrend2D *trend, psVector *x, psVector *y);
     42
    3643/// @}
    3744# endif
Note: See TracChangeset for help on using the changeset viewer.