/* @file  pmGrowthCurve.h
 * @brief functions to manipulate the curve-of-growth data
 *
 * @author EAM, IfA
 *
 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
 * @date $Date: 2007-01-24 02:54:15 $
 * Copyright 2006 Institute for Astronomy, University of Hawaii
 */

# ifndef PM_GROWTH_CURVE_H
# define PM_GROWTH_CURVE_H

/// @addtogroup Objects Object Detection / Analysis Functions
/// @{

typedef struct
{
    psVector *radius;
    psVector *apMag;
    psF32 refRadius;
    psF32 maxRadius;
    psF32 fitMag;
    psF32 apRef;   // apMag[refRadius]
    psF32 apLoss;  // fitMag - apRef
}
pmGrowthCurve;

pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 refRadius);
psF32 pmGrowthCurveCorrect (pmGrowthCurve *growth, psF32 radius);

/// @}
# endif /* PM_GROWTH_CURVE_H */
