OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
amoeba.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include "amoeba.h"
Include dependency graph for amoeba.c:

Go to the source code of this file.

Macros

#define GET_PSUM
 

Functions

short amoeba (double *pnts, FITSTRUCT *auxdata, double(*func)(FITSTRUCT *, double[]), float tol)
 
double reflect (double *pnts, double y[], double psum[], short ndim, FITSTRUCT *auxdata, double(*func)(FITSTRUCT *, double[]), short ibig, float fac)
 

Macro Definition Documentation

◆ GET_PSUM

#define GET_PSUM
Value:
for (j=0;j<ndim;j++) \
{ \
for (sum=0.0,i=0;i<ndim+1;i++) \
sum += *(pnts + i*ndim +j); \
psum[j] = sum;\
}

Definition at line 6 of file amoeba.c.

Function Documentation

◆ amoeba()

short amoeba ( double *  pnts,
FITSTRUCT auxdata,
double(*)(FITSTRUCT *, double[])  func,
float  tol 
)

Definition at line 14 of file amoeba.c.

◆ reflect()

double reflect ( double *  pnts,
double  y[],
double  psum[],
short  ndim,
FITSTRUCT auxdata,
double(*)(FITSTRUCT *, double[])  func,
short  ibig,
float  fac 
)

Definition at line 87 of file amoeba.c.

int j
Definition: decode_rs.h:73
int i
Definition: decode_rs.h:71