//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the
// one that was being worked on.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

/** @file  pmNonLinear.h
 *
 *  Provides polynomial or table lookup non-linearity corrections to readouts.
 *
 *  @author GLG, MHPCC
 *
 *  @version $Revision: 1.2.12.1 $ $Name: not supported by cvs2svn $
 *  @date $Date: 2006-02-17 17:13:41 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
 *
 */

#if !defined(PM_NON_LINEAR_H)
#define PM_NON_LINEAR_H

#include "pslib.h"
#include "pmFPA.h"

pmReadout *pmNonLinearityPolynomial(pmReadout *in,
                                    const psPolynomial1D *coeff);

pmReadout *pmNonLinearityLookup(pmReadout *in,
                                const psVector *inFlux,
                                const psVector *outFlux);

#endif
