mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Wrapper for a native array to pass to levmarInterface, with 2D Gaussian details.
Supports fixing G0, G, x0, and y0 independently. The shape and orientation can be fixed, but for the general form, sigma_x, sigma_y, and theta can only be fixed together.
Definition at line 45 of file array2FitGaussian2D.hpp.
#include <math/fit/array2FitGaussian2D.hpp>
Public Member Functions | |
void | setFixed (bool G0, bool G, bool x0, bool y0, bool sigma_x, bool sigma_y, bool theta) |
Set whether each parameter is fixed. | |
Public Attributes | |
realT * | data { nullptr } |
Pointer to the array. | |
size_t | nx { 0 } |
X dimension of the array. | |
size_t | ny { 0 } |
Y dimension of the array. | |
realT * | weights { nullptr } |
realT * | mask { nullptr } |
Pointer to the (optional) mask array. Any 0 pixels are excluded from the fit. | |
int | m_sigma_x_idx { 4 } |
Index of sigma_x in the parameters. Re-used for a. | |
int | m_sigma_y_idx { 5 } |
Index of sigma_y in the parameters. Re-used for b. | |
int | m_theta_idx { 6 } |
Index of theta in the parameters. Re-used for c. | |
int | m_sigma_idx { 4 } |
Index of sigma in the symmetric case. | |
void mx::math::fit::array2FitGaussian2D< realT >::setFixed | ( | bool | G0, |
bool | G, | ||
bool | x0, | ||
bool | y0, | ||
bool | sigma_x, | ||
bool | sigma_y, | ||
bool | theta | ||
) |
Set whether each parameter is fixed.
Sets the parameter indices appropriately.
Definition at line 152 of file array2FitGaussian2D.hpp.
References mx::math::six_fifths().
realT* mx::math::fit::array2FitGaussian2D< realT >::data { nullptr } |
Pointer to the array.
Definition at line 47 of file array2FitGaussian2D.hpp.
int mx::math::fit::array2FitGaussian2D< realT >::m_sigma_idx { 4 } |
Index of sigma in the symmetric case.
Definition at line 78 of file array2FitGaussian2D.hpp.
int mx::math::fit::array2FitGaussian2D< realT >::m_sigma_x_idx { 4 } |
Index of sigma_x in the parameters. Re-used for a.
Definition at line 74 of file array2FitGaussian2D.hpp.
int mx::math::fit::array2FitGaussian2D< realT >::m_sigma_y_idx { 5 } |
Index of sigma_y in the parameters. Re-used for b.
Definition at line 75 of file array2FitGaussian2D.hpp.
int mx::math::fit::array2FitGaussian2D< realT >::m_theta_idx { 6 } |
Index of theta in the parameters. Re-used for c.
Definition at line 76 of file array2FitGaussian2D.hpp.
realT* mx::math::fit::array2FitGaussian2D< realT >::mask { nullptr } |
Pointer to the (optional) mask array. Any 0 pixels are excluded from the fit.
Definition at line 54 of file array2FitGaussian2D.hpp.
size_t mx::math::fit::array2FitGaussian2D< realT >::nx { 0 } |
X dimension of the array.
Definition at line 48 of file array2FitGaussian2D.hpp.
size_t mx::math::fit::array2FitGaussian2D< realT >::ny { 0 } |
Y dimension of the array.
Definition at line 49 of file array2FitGaussian2D.hpp.
realT* mx::math::fit::array2FitGaussian2D< realT >::weights { nullptr } |
Pointer to the (optional) weight array. Normallt this should be the square root of the vaiance.
Definition at line 51 of file array2FitGaussian2D.hpp.