MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
stfun.h File Reference

Functions

stfun_t * stfun_init (long nx, long ny, real *amp)
void stfun_push (stfun_t *A, dmat *opd)
dmat * stfun_finalize (stfun_t *A)
dmat * stfun_batch (const_anyarray opd, const dmat *amp)
dmat * stfun_kolmogorov (loc_t *loc, real r0)

Detailed Description

Routine to compute structure function.

Function Documentation

◆ stfun_init()

stfun_t * stfun_init ( long nx,
long ny,
real * amp )

Initialize the stfun data to calculate structure function.

◆ stfun_push()

void stfun_push ( stfun_t * A,
dmat * opd )

Accumulate OPDs.

◆ stfun_finalize()

dmat * stfun_finalize ( stfun_t * A)

Use accumulated data to compute the structure function.

◆ stfun_batch()

dmat * stfun_batch ( const_anyarray opd_,
const dmat * amp )

Batch process cell array of OPDs.

Parameters
opd_nz array of nx*ny array of the OPD
ampn*ny array of the amplitude map

◆ stfun_kolmogorov()

dmat * stfun_kolmogorov ( loc_t * loc,
real r0 )

Generate the structure function of the phase of kolmogorov spectrum.