ImStat Class Reference

Public Member Functions

Static Public Attributes

Protected Member Functions

Protected Attributes


Detailed Description

class to fit basic image parameters sum, rms, chi squared and sigma of a given image. After construction the respective fit range must be set.

Example: ImStat stat(file, "e." + file, dist, g.boxsize, g.nbins );

stat.set_sum_range(g.sum_h_range);

cout << "plot " << stat.gnuplot_sum_hist(file) << ", " << stat.gnuplot_sum(*fi);


Constructor & Destructor Documentation

ImStat::ImStat ( const string &  testframe,
const string &  errorframe,
const string &  distfile,
const int  boxsize = 8,
const int  nbins = 1001 
)

References D_, I_, Ie_, and Distortion::init_from_file().

ImStat::ImStat ( MArray< float, 2 > &  I_n,
MArray< float, 2 > &  Ie_n,
Distortion D,
const int  boxsize = 8,
const int  nbins = 1001 
)

Member Function Documentation

void ImStat::set_nbins ( const int  nbins  ) 
void ImStat::set_boxsize ( const int  boxsize  ) 
void ImStat::set_sum_range ( float *  range  )  [inline]

References have_sum_hist_, sum_fitted_, and sum_range_.

Referenced by main().

void ImStat::set_rms_range ( float *  range  )  [inline]

References have_rms_hist_, rms_fitted_, and rms_range_.

Referenced by main().

void ImStat::set_chi2_range ( float *  range  )  [inline]

References chi2_fitted_, chi2_range_, and have_chi2_hist_.

Referenced by main().

void ImStat::set_sig_range ( float *  range  )  [inline]

References have_sig_hist_, sig_fitted_, and sig_range_.

Referenced by main().

float ImStat::fit_sum (  ) 
string ImStat::gnuplot_sum ( const string &  title = ""  ) 

References fit_sum(), sum_chi2_, sum_fitted_, and sum_params_.

Referenced by main().

string ImStat::gnuplot_sum_hist ( const string &  title = "",
const bool  steps = false 
)

References mktmpfile(), and write_sum_hist().

Referenced by main().

void ImStat::write_sum_hist ( ofstream &  of  ) 

References make_sum_hist(), sum_range_, and write_hist().

Referenced by gnuplot_sum_hist().

float ImStat::get_sum_max (  )  [inline]

References fit_sum(), sum_fitted_, and sum_max_.

Referenced by main().

ltl::FVector<float,4> ImStat::get_sum_params (  )  [inline]

References fit_sum(), sum_fitted_, and sum_params_.

Referenced by main().

ltl::FVector<float,4> ImStat::get_sum_errors (  )  [inline]

References fit_sum(), sum_errors_, and sum_fitted_.

float ImStat::fit_rms (  ) 
string ImStat::gnuplot_rms ( const string &  title = ""  ) 

References fit_rms(), rms_chi2_, rms_fitted_, and rms_params_.

Referenced by main().

string ImStat::gnuplot_rms_hist ( const string &  title = "",
const bool  steps = false 
)

References mktmpfile(), and write_rms_hist().

Referenced by main().

void ImStat::write_rms_hist ( ofstream &  of  ) 

References make_rms_hist(), rms_range_, and write_hist().

Referenced by gnuplot_rms_hist().

float ImStat::get_rms_max (  )  [inline]

References fit_rms(), rms_fitted_, and rms_max_.

Referenced by main().

ltl::FVector<float,6> ImStat::get_rms_params (  )  [inline]

References fit_rms(), rms_fitted_, and rms_params_.

Referenced by main().

ltl::FVector<float,6> ImStat::get_rms_errors (  )  [inline]

References fit_rms(), rms_errors_, and rms_fitted_.

float ImStat::fit_chi2 (  ) 
string ImStat::gnuplot_chi2 ( const string &  title = ""  ) 

References boxsize_, chi2_chi2_, chi2_fitted_, chi2_params_, and fit_chi2().

Referenced by main().

string ImStat::gnuplot_chi2_hist ( const string &  title = "",
const bool  steps = false 
)

References mktmpfile(), and write_chi2_hist().

Referenced by main().

void ImStat::write_chi2_hist ( ofstream &  of  ) 
float ImStat::get_chi2_max (  )  [inline]

References chi2_fitted_, chi2_max_, and fit_chi2().

Referenced by main().

ltl::FVector<float,2> ImStat::get_chi2_params (  )  [inline]

References chi2_fitted_, chi2_params_, and fit_chi2().

Referenced by main().

ltl::FVector<float,2> ImStat::get_chi2_errors (  )  [inline]
float ImStat::fit_sig (  ) 
string ImStat::gnuplot_sig ( const string &  title = ""  ) 

References fit_sig(), sig_chi2_, sig_fitted_, and sig_params_.

Referenced by main().

string ImStat::gnuplot_sig_hist ( const string &  title = "",
const bool  steps = false 
)

References mktmpfile(), and write_sig_hist().

Referenced by main().

void ImStat::write_sig_hist ( ofstream &  of  ) 

References make_sig_hist(), sig_range_, and write_hist().

Referenced by gnuplot_sig_hist().

float ImStat::get_sig_max (  )  [inline]

References fit_sig(), sig_fitted_, and sig_max_.

Referenced by main().

ltl::FVector<float,4> ImStat::get_sig_params (  )  [inline]

References fit_sig(), sig_fitted_, and sig_params_.

Referenced by main().

ltl::FVector<float,4> ImStat::get_sig_errors (  )  [inline]

References fit_sig(), sig_errors_, and sig_fitted_.

MArray< float, 1 > ImStat::make_rms_hist (  )  [protected]
MArray< float, 1 > ImStat::make_sum_hist (  )  [protected]
MArray< float, 1 > ImStat::make_chi2_hist (  )  [protected]
MArray< float, 1 > ImStat::make_sig_hist (  )  [protected]
void ImStat::write_hist ( ofstream &  out,
MArray< float, 1 >  hist,
const float *  range 
) [protected]
template<class Fct >
MArray<float, 1> ImStat::make_hist ( Fct  f,
const float *  range,
float &  maxh 
) [inline, protected]
template<typename Fct , int NPar>
float ImStat::fit_ ( const Fct &  func,
float *  range,
const MArray< float, 1 >  Y,
ltl::FVector< float, NPar > &  params,
ltl::FVector< float, NPar > &  errors,
const ltl::FVector< bool, NPar > &  ignore 
) [inline, protected]

References nbins_.


Field Documentation

string ImStat::version [static]
bool ImStat::sum_fitted_ [protected]
bool ImStat::have_sum_hist_ [protected]
float ImStat::sum_range_[2] [protected]
float ImStat::sum_max_ [protected]

Referenced by fit_sum(), get_sum_max(), and make_sum_hist().

MArray<float,1> ImStat::sum_hist_ [protected]

Referenced by make_sum_hist().

ltl::FVector<float,4> ImStat::sum_params_ [protected]
ltl::FVector<float,4> ImStat::sum_errors_ [protected]

Referenced by fit_sum(), and get_sum_errors().

float ImStat::sum_chi2_ [protected]

Referenced by fit_sum(), and gnuplot_sum().

bool ImStat::rms_fitted_ [protected]
bool ImStat::have_rms_hist_ [protected]
float ImStat::rms_range_[2] [protected]
float ImStat::rms_max_ [protected]

Referenced by fit_rms(), get_rms_max(), and make_rms_hist().

MArray<float,1> ImStat::rms_hist_ [protected]

Referenced by make_rms_hist().

ltl::FVector<float,6> ImStat::rms_params_ [protected]
ltl::FVector<float,6> ImStat::rms_errors_ [protected]

Referenced by fit_rms(), and get_rms_errors().

float ImStat::rms_chi2_ [protected]

Referenced by fit_rms(), and gnuplot_rms().

bool ImStat::chi2_fitted_ [protected]
bool ImStat::have_chi2_hist_ [protected]
float ImStat::chi2_range_[2] [protected]
float ImStat::chi2_max_ [protected]
MArray<float,1> ImStat::chi2_hist_ [protected]

Referenced by make_chi2_hist().

ltl::FVector<float,2> ImStat::chi2_params_ [protected]
ltl::FVector<float,2> ImStat::chi2_errors_ [protected]

Referenced by fit_chi2(), and get_chi2_errors().

float ImStat::chi2_chi2_ [protected]

Referenced by fit_chi2(), and gnuplot_chi2().

bool ImStat::sig_fitted_ [protected]
bool ImStat::have_sig_hist_ [protected]
float ImStat::sig_range_[2] [protected]
float ImStat::sig_max_ [protected]

Referenced by fit_sig(), get_sig_max(), and make_sig_hist().

MArray<float,1> ImStat::sig_hist_ [protected]

Referenced by make_sig_hist().

ltl::FVector<float,4> ImStat::sig_params_ [protected]
ltl::FVector<float,4> ImStat::sig_errors_ [protected]

Referenced by fit_sig(), and get_sig_errors().

float ImStat::sig_chi2_ [protected]

Referenced by fit_sig(), and gnuplot_sig().

MArray<float,2> ImStat::I_ [protected]

Referenced by ImStat(), and make_hist().

MArray<float,2> ImStat::Ie_ [protected]

Referenced by ImStat(), and make_hist().

Distortion ImStat::D_ [protected]

Referenced by ImStat(), and make_hist().

int ImStat::boxsize_ [protected]
int ImStat::nbins_ [protected]

Referenced by fit_(), make_hist(), set_nbins(), and write_hist().


Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1