Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

AO_algo.h File Reference

#include <cmath>
#include <vector>
#include <string>
#include "sim_utils.h"
#include "AO_cpp.h"
#include "three_frame.h"

Go to the source code of this file.

Namespaces

namespace  Arroyo

Functions

double chisq_2gf (const vector< float > &data, vector< double > &centers, vector< double > &widths, vector< double > &amps, double &dcconst, int verbose=0)
void twogauss_fit (const vector< float > &data, vector< double > &centers, vector< double > &widths, vector< double > &amps, double &dcconst)
void box_mueller (double &r1, double &r2)
template<class U, class V>
void fit_straight_line (const long &nelems, const double *x, const U *y, const V *wts, double &slope, double &sigsq_slope, double &yintercept, double &sigsq_yintercept, double &chisq)
template<class T>
void cyclic_permutation (vector< long > axes, long xshift, long yshift, T *data)
template<class T>
void complex_cyclic_permutation (vector< long > axes, long xshift, long yshift, T *data)


Function Documentation

void box_mueller double &  r1,
double &  r2
[inline]
 

return a random variable with 2d gaussian distribution

double chisq_2gf const vector< float > &  data,
vector< double > &  centers,
vector< double > &  widths,
vector< double > &  amps,
double &  dcconst,
int  verbose = 0
 

function used in twogauss_fit

template<class T>
void complex_cyclic_permutation vector< long >  axes,
long  xshift,
long  yshift,
T *  data
 

This isn't a particularly safe function... It cyclically permutes data by xshift and yshift. The zeroth element of the axes vector corresponds to the y direction, and the first element of the axes vector corresponds to the x direction

template<class T>
void cyclic_permutation vector< long >  axes,
long  xshift,
long  yshift,
T *  data
 

This isn't a particularly safe function... It cyclically permutes data by xshift and yshift. The zeroth element of the axes vector corresponds to the y direction, and the first element of the axes vector corresponds to the x direction

template<class U, class V>
void fit_straight_line const long &  nelems,
const double *  x,
const U *  y,
const V *  wts,
double &  slope,
double &  sigsq_slope,
double &  yintercept,
double &  sigsq_yintercept,
double &  chisq
 

Modification of numerical recipes algorithm for fitting a straight line

void twogauss_fit const vector< float > &  data,
vector< double > &  centers,
vector< double > &  widths,
vector< double > &  amps,
double &  dcconst
 

fit gaussians


Generated on Thu Nov 29 17:16:32 2007 for arroyo by  doxygen 1.3.9.1