TwiceAsNice
2019-02-18
|
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "define.h"
#include "globals.h"
#include "fits/fitscat.h"
#include "prefs.h"
#include "som.h"
Macros | |
#define | SHFT(a, b, c, d) {(a)=(b);(b)=(c);(c)=(d);} /* For line-search */ |
#define | SIGN(a, b) ((b)>0.0? fabs(a) : -fabs(a)) /* For line-search */ |
#define | GOLD 1.6180340 /* Golden section for line-search */ |
#define | CGOLD 0.3819660 /* Complement to the golden section */ |
#define | TINY 1e-20 /* Almost nothing */ |
#define | GLIMIT 100.0 /* Max. magnification in line-search */ |
#define | ITMAX 100 /* Max. nb of iter. in line-search */ |
#define | TOL 1e-1 /* Fract. tolerance in line-search */ |
#define | ITMAX 100 |
#define | EPS 1.0e-10 |
Functions | |
void | som_phot (somstruct *som, float back, float backnoise, float gain, float dx0, float dy0, float *vector, float clip) |
int | som_mkweight (somstruct *som, float back, float backnoise, float gain) |
float | som_err (somstruct *som, float dist, int flags) |
float | som_linmin (somstruct *som) |
void | som_conjgrad (somstruct *som, float ftol) |
void | som_end (somstruct *som) |
somstruct * | som_load (char *filename) |
#define CGOLD 0.3819660 /* Complement to the golden section */ |
#define EPS 1.0e-10 |
#define GLIMIT 100.0 /* Max. magnification in line-search */ |
#define GOLD 1.6180340 /* Golden section for line-search */ |
#define ITMAX 100 /* Max. nb of iter. in line-search */ |
#define ITMAX 100 |
#define TINY 1e-20 /* Almost nothing */ |
#define TOL 1e-1 /* Fract. tolerance in line-search */ |
void som_conjgrad | ( | somstruct * | som, |
float | ftol | ||
) |
void som_end | ( | somstruct * | som | ) |
float som_err | ( | somstruct * | som, |
float | dist, | ||
int | flags | ||
) |
float som_linmin | ( | somstruct * | som | ) |
somstruct* som_load | ( | char * | filename | ) |
int som_mkweight | ( | somstruct * | som, |
float | back, | ||
float | backnoise, | ||
float | gain | ||
) |
void som_phot | ( | somstruct * | som, |
float | back, | ||
float | backnoise, | ||
float | gain, | ||
float | dx0, | ||
float | dy0, | ||
float * | vector, | ||
float | clip | ||
) |