TwiceAsNice
2019-02-18
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "define.h"
#include "globals.h"
#include "prefs.h"
#include "fits/fitscat.h"
#include "levmar/levmar.h"
#include "fft.h"
#include "fitswcs.h"
#include "check.h"
#include "pattern.h"
#include "psf.h"
#include "profit.h"
Macros | |
#define | _GNU_SOURCE |
Functions | |
static double | prof_gammainc (double x, double a) |
static double | prof_gamma (double x) |
static float | prof_interpolate (profstruct *prof, float *posin) |
static float | interpolate_pix (float *posin, float *pix, int *naxisn, interpenum interptype) |
static void | make_kernel (float pos, float *kernel, interpenum interptype) |
profitstruct * | profit_init (psfstruct *psf, unsigned int modeltype) |
void | profit_end (profitstruct *profit) |
void | profit_fit (profitstruct *profit, picstruct *field, picstruct *wfield, picstruct *dgeofield, objstruct *obj, obj2struct *obj2) |
void | profit_dfit (profitstruct *profit, profitstruct *dprofit, picstruct *field, picstruct *dfield, picstruct *wfield, picstruct *dwfield, objstruct *obj, obj2struct *obj2) |
float | profit_noisearea (profitstruct *profit) |
void | profit_fluxcor (profitstruct *profit, objstruct *obj, obj2struct *obj2) |
float | profit_minradius (profitstruct *profit, float refffac) |
void | profit_psf (profitstruct *profit) |
int | profit_minimize (profitstruct *profit, int niter) |
void | profit_printout (int n_par, float *par, int m_dat, float *fvec, void *data, int iflag, int iter, int nfev) |
void | profit_evaluate (double *dpar, double *fvec, int m, int n, void *adata) |
float * | profit_residuals (profitstruct *profit, picstruct *field, picstruct *wfield, float dynparam, float *param, float *resi) |
float * | profit_presiduals (profitstruct *profit, double *dparam, float *presi) |
float * | profit_compresi (profitstruct *profit, float dynparam, float *resi) |
int | profit_resample (profitstruct *profit, float *inpix, PIXTYPE *outpix, float factor) |
void | profit_convolve (profitstruct *profit, float *modpix) |
void | profit_makedft (profitstruct *profit) |
int | profit_copyobjpix (profitstruct *profit, picstruct *field, picstruct *wfield, picstruct *dgeofield) |
float | profit_spiralindex (profitstruct *profit) |
void | profit_moments (profitstruct *profit, obj2struct *obj2) |
void | profit_convmoments (profitstruct *profit, obj2struct *obj2) |
void | profit_surface (profitstruct *profit, obj2struct *obj2) |
void | profit_addparam (profitstruct *profit, paramenum paramindex, float **param) |
void | profit_resetparam (profitstruct *profit, paramenum paramtype) |
void | profit_resetparams (profitstruct *profit) |
int | profit_setparam (profitstruct *profit, paramenum paramtype, float param, float parammin, float parammax, parfitenum parfittype, float priorcen, float priorsig) |
int | profit_boundtounbound (profitstruct *profit, float *param, double *dparam, int index) |
int | profit_unboundtobound (profitstruct *profit, double *dparam, float *param, int index) |
int | profit_covarunboundtobound (profitstruct *profit, double *dcovar, float *covar) |
profstruct * | prof_init (profitstruct *profit, unsigned int modeltype) |
void | prof_end (profstruct *prof) |
float | prof_add (profitstruct *profit, profstruct *prof, int extfluxfac_flag) |
int | prof_moments (profitstruct *profit, profstruct *prof, double *jac) |
Variables | |
const int | interp_kernwidth [5] ={1,2,4,6,8} |
const int | flux_flag [PARAM_NPARAM] |
int | theniter |
int | the_gal |
static picstruct * | the_field |
static picstruct * | the_wfield |
profitstruct * | theprofit |
profitstruct * | thedprofit |
profitstruct * | thepprofit |
profitstruct * | theqprofit |
#define _GNU_SOURCE |
|
static |
|
static |
float prof_add | ( | profitstruct * | profit, |
profstruct * | prof, | ||
int | extfluxfac_flag | ||
) |
prof->featpitchvar
void prof_end | ( | profstruct * | prof | ) |
static double prof_gamma | ( | double | x | ) |
|
static |
profstruct* prof_init | ( | profitstruct * | profit, |
unsigned int | modeltype | ||
) |
|
static |
int prof_moments | ( | profitstruct * | profit, |
profstruct * | prof, | ||
double * | jac | ||
) |
void profit_addparam | ( | profitstruct * | profit, |
paramenum | paramindex, | ||
float ** | param | ||
) |
int profit_boundtounbound | ( | profitstruct * | profit, |
float * | param, | ||
double * | dparam, | ||
int | index | ||
) |
float* profit_compresi | ( | profitstruct * | profit, |
float | dynparam, | ||
float * | resi | ||
) |
void profit_convmoments | ( | profitstruct * | profit, |
obj2struct * | obj2 | ||
) |
void profit_convolve | ( | profitstruct * | profit, |
float * | modpix | ||
) |
int profit_copyobjpix | ( | profitstruct * | profit, |
picstruct * | field, | ||
picstruct * | wfield, | ||
picstruct * | dgeofield | ||
) |
int profit_covarunboundtobound | ( | profitstruct * | profit, |
double * | dcovar, | ||
float * | covar | ||
) |
void profit_dfit | ( | profitstruct * | profit, |
profitstruct * | dprofit, | ||
picstruct * | field, | ||
picstruct * | dfield, | ||
picstruct * | wfield, | ||
picstruct * | dwfield, | ||
objstruct * | obj, | ||
obj2struct * | obj2 | ||
) |
void profit_end | ( | profitstruct * | profit | ) |
void profit_evaluate | ( | double * | dpar, |
double * | fvec, | ||
int | m, | ||
int | n, | ||
void * | adata | ||
) |
void profit_fit | ( | profitstruct * | profit, |
picstruct * | field, | ||
picstruct * | wfield, | ||
picstruct * | dgeofield, | ||
objstruct * | obj, | ||
obj2struct * | obj2 | ||
) |
void profit_fluxcor | ( | profitstruct * | profit, |
objstruct * | obj, | ||
obj2struct * | obj2 | ||
) |
profitstruct* profit_init | ( | psfstruct * | psf, |
unsigned int | modeltype | ||
) |
void profit_makedft | ( | profitstruct * | profit | ) |
int profit_minimize | ( | profitstruct * | profit, |
int | niter | ||
) |
float profit_minradius | ( | profitstruct * | profit, |
float | refffac | ||
) |
void profit_moments | ( | profitstruct * | profit, |
obj2struct * | obj2 | ||
) |
float profit_noisearea | ( | profitstruct * | profit | ) |
float* profit_presiduals | ( | profitstruct * | profit, |
double * | dparam, | ||
float * | presi | ||
) |
void profit_printout | ( | int | n_par, |
float * | par, | ||
int | m_dat, | ||
float * | fvec, | ||
void * | data, | ||
int | iflag, | ||
int | iter, | ||
int | nfev | ||
) |
void profit_psf | ( | profitstruct * | profit | ) |
int profit_resample | ( | profitstruct * | profit, |
float * | inpix, | ||
PIXTYPE * | outpix, | ||
float | factor | ||
) |
void profit_resetparam | ( | profitstruct * | profit, |
paramenum | paramtype | ||
) |
void profit_resetparams | ( | profitstruct * | profit | ) |
float* profit_residuals | ( | profitstruct * | profit, |
picstruct * | field, | ||
picstruct * | wfield, | ||
float | dynparam, | ||
float * | param, | ||
float * | resi | ||
) |
int profit_setparam | ( | profitstruct * | profit, |
paramenum | paramtype, | ||
float | param, | ||
float | parammin, | ||
float | parammax, | ||
parfitenum | parfittype, | ||
float | priorcen, | ||
float | priorsig | ||
) |
float profit_spiralindex | ( | profitstruct * | profit | ) |
void profit_surface | ( | profitstruct * | profit, |
obj2struct * | obj2 | ||
) |
int profit_unboundtobound | ( | profitstruct * | profit, |
double * | dparam, | ||
float * | param, | ||
int | index | ||
) |
const int flux_flag[PARAM_NPARAM] |
const int interp_kernwidth[5] ={1,2,4,6,8} |
|
static |
int the_gal |
|
static |
profitstruct * thedprofit |
int theniter |
profitstruct * thepprofit |
profitstruct* theprofit |
profitstruct * theqprofit |