grasp_parameters.h
Go to the documentation of this file.
64 void grasp_parameters_get_characteristic_type_longname_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, char *characteristic_name, int size_characteristic_name);
78 void grasp_parameters_get_characteristic_type_shortname_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, char *characteristic_name, int size_characteristic_name);
90 void grasp_parameters_get_characteric_type_pretty_name_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, bool longname, float wavelenghts[_KW], int wavelenghts_involved[_KPARS], char *characteristic_name, int size_characteristic_name);
98 int grasp_parameters_get_characteristic_index_by_parameter_number(par_number_NDIM *dimensions, int parameter_number);
106 int grasp_parameters_get_characteristic_code_by_parameter_number(par_number_NDIM *dimensions, int parameter_number);
114 int grasp_parameters_get_mode_by_parameter_number(par_number_NDIM *dimensions, int parameter_number);
122 int grasp_parameters_get_position_by_parameter_number(par_number_NDIM *dimensions, int parameter_number);
129 int grasp_parameters_get_position_of_characteristic(par_number_NDIM *dimensions, int parameter_number);
137 int grasp_parameters_index_of_parameter_type(par_number_NDIM *dimensions, int characteristic_type);
148 int grasp_parameters_index_of_parameter_type_by_kind_of_parameter(par_number_NDIM *dimensions, int begin_characteristic_type, int end_characteristic_type);
159 int grasp_parameters_characteristic_code_present_of_kind_of_parameter(par_number_NDIM *dimensions, int begin_characteristic_type, int end_characteristic_type);
179 int grasp_parameters_set_value(par_number_NDIM *dimensions, float iguess[_KPARS], int characteristic_type, int mode , int pos, float value);
187 int grasp_parameters_number_of_modes_of_parameter(par_number_NDIM *dimensions, int characteristic_type);
196 int grasp_parameters_number_of_elements_of_parameter(par_number_NDIM *dimensions, int characteristic_type, int mode);
207 float grasp_parameters_output_get_value(par_number_NDIM *dimensions, const float parameters[_KPARS], int characteristic_type, int mode , int pos);
218 int grasp_parameters_get_position(par_number_NDIM *dimensions, int characteristic_type, int mode , int pos);
233 float grasp_parameters_iguess_get_value(par_number_NDIM *dimensions, float APSING[_KPARS], float iguess[_KPARS], float APSMIN[_KPARS], float APSMAX[_KPARS], int characteristic_type, int mode , int pos);
float grasp_parameters_output_get_value(par_number_NDIM *dimensions, const float parameters[_KPARS], int characteristic_type, int mode, int pos)
Definition: grasp_parameters.c:285
int grasp_parameters_set_value(par_number_NDIM *dimensions, float iguess[_KPARS], int characteristic_type, int mode, int pos, float value)
Set in initial guess array a value.
Definition: grasp_parameters.c:230
int grasp_parameters_get_position(par_number_NDIM *dimensions, int characteristic_type, int mode, int pos)
Definition: grasp_parameters.c:299
int grasp_parameters_index_of_parameter_type(par_number_NDIM *dimensions, int characteristic_type)
Look for the index of a characteristic type.
Definition: grasp_parameters.c:185
int grasp_parameters_index_of_parameter_type_by_kind_of_parameter(par_number_NDIM *dimensions, int begin_characteristic_type, int end_characteristic_type)
Definition: grasp_parameters.c:197
bool grasp_parameters_has_parameter_type(par_number_NDIM *dimensions, int characteristic_type)
Checks if a characteristic was set in settings.
Definition: grasp_parameters.c:222
int grasp_parameters_get_characteristic_index_by_parameter_number(par_number_NDIM *dimensions, int parameter_number)
Get the index of the characteristic in NDIM.N1 array.
Definition: grasp_parameters.c:24
void grasp_parameters_get_characteristic_type_longname_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, char *characteristic_name, int size_characteristic_name)
Retrieve the name (long) of a characteristic knowing its position.
Definition: grasp_parameters.c:97
int grasp_parameters_number_of_modes_of_parameter(par_number_NDIM *dimensions, int characteristic_type)
Definition: grasp_parameters.c:252
Definition: grasp_parameters.h:31
int grasp_parameters_number_of_elements_of_parameter(par_number_NDIM *dimensions, int characteristic_type, int mode)
Definition: grasp_parameters.c:267
void grasp_parameters_get_characteric_type_pretty_name_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, bool longname, float wavelenghts[_KW], int wavelenghts_involved[_KPARS], char *characteristic_name, int size_characteristic_name)
Retrieve the name of the characteristic of a parameter like a unique string take into account the wav...
Definition: grasp_parameters.c:132
int grasp_parameters_get_mode_by_parameter_number(par_number_NDIM *dimensions, int parameter_number)
Definition: grasp_parameters.c:54
int grasp_parameters_get_position_by_parameter_number(par_number_NDIM *dimensions, int parameter_number)
Definition: grasp_parameters.c:78
int grasp_parameters_get_position_of_characteristic(par_number_NDIM *dimensions, int parameter_number)
Definition: grasp_parameters.c:88
struct par_number_NDIM_ par_number_NDIM
void grasp_parameters_get_characteristic_type_shortname_by_parameter_number(par_number_NDIM *dimensions, int parameter_number, char *characteristic_name, int size_characteristic_name)
Retrieve the name (short) of a characteristic knowing its position.
Definition: grasp_parameters.c:114
void grasp_parameters_initialize(float iguess[_KIMAGE][_KPARS])
Initialize a matrix structure of parameters.
Definition: grasp_parameters.c:14
int grasp_parameters_get_characteristic_code_by_parameter_number(par_number_NDIM *dimensions, int parameter_number)
Definition: grasp_parameters.c:41
int grasp_parameters_characteristic_code_present_of_kind_of_parameter(par_number_NDIM *dimensions, int begin_characteristic_type, int end_characteristic_type)
Definition: grasp_parameters.c:209
float grasp_parameters_iguess_get_value(par_number_NDIM *dimensions, float APSING[_KPARS], float iguess[_KPARS], float APSMIN[_KPARS], float APSMAX[_KPARS], int characteristic_type, int mode, int pos)
Definition: grasp_parameters.c:320