Public Member Functions | |
| recmat (std::string fname) | |
| std::string | get_filePath () |
| int | get_n_modes () |
| int | get_n_slopes () |
| int | get_rec_tech () |
| int | load_recmat_LBT (std::string fname) |
| int | reconstruct (float *slopes) |
| Given a new slopes vector, reconstruct the amplitudes. More... | |
| int | calc_sumvar (float *sumvar, int m0=2, int m1=-1, bool fiterr=true) |
| Calculate the sum of the variances, e.g. the dot product of the amplitude vector. More... | |
Public Attributes | |
| std::string | filePath |
| The full path to the reconstructor matrix. | |
| std::string | fileName |
| file name of the reconstructor matrix | |
| int | gpu_inited |
| Flag for whether the gpu globals are initialized. | |
| int | n_modes |
| The number of modes, and the rows in the reconstructor matrix. | |
| int | n_slopes |
| The number of slopes, and the columns in the reconstructor matrix. | |
| float | reflection_gain |
| Factor to apply to reconstructed amplitudes to account for mirror reflection. | |
| float | unit_conversion |
| Factor to convert variances to nanometers. | |
| int | rec_tech |
| Which reconstructor technique to use, either REC_ATLAS or REC_CPU. | |
| gsl_matrix_float * | R |
| float * | amp |
| The reconstructed amplitudes, a vector of length n_modes. | |
| double | tel_diam |
| double | median_r0 |
| double | median_r0_lam |
| double | fitting_A |
| double | fitting_B |
| double | fitting_error_sq |
| int recmat::reconstruct | ( | float * | slopes | ) |
Upon exit the amp vector will be populated with the reconstructed modal amplitudes.
Definition at line 177 of file recmat.cpp.
Does not include the first 2 modes, since they are tip and tilt. This corresponds to the instantaneous Strehl ratio.
Definition at line 196 of file recmat.cpp.
References amp, n_modes, reflection_gain, and unit_conversion.