- Timestamp:
- Sep 7, 2007, 10:24:34 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070830/psModules/src/objects/pmTrend2D.h
r14731 r14778 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1.2. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-09-0 4 18:35:51$7 * @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-09-07 20:24:34 $ 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 17 17 18 18 typedef 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, 22 22 } pmTrend2DMode; 23 23 24 24 typedef 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 28 29 } pmTrend2D; 29 30 30 // allocate a pmTrend2D structure . nX,nY isorder for the polynomials, max number of grid cells for31 // allocate a pmTrend2D structure tied to an image dimensions. nXtrend,nYtrend is the order for the polynomials, max number of grid cells for 31 32 // psImageMap 32 pmTrend2D *pmTrend2DAlloc (pmTrend2DMode mode, int nXout, int nYout, int nXtrend, int nYtrend, psStats *stats); 33 pmTrend2D *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 36 pmTrend2D *pmTrend2DFieldAlloc (pmTrend2DMode mode, int nXfield, int nYfield, int nXtrend, int nYtrend, psStats *stats); 33 37 34 38 bool pmTrend2DFit (pmTrend2D *trend, psVector *x, psVector *y, psVector *f, psVector *df); 35 39 40 double pmTrend2DEval (pmTrend2D *trend, float x, float y); 41 psVector *pmTrend2DEvalVector (pmTrend2D *trend, psVector *x, psVector *y); 42 36 43 /// @} 37 44 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
