V3FIT
|
Defines the base class of the type combination_class. More...
Data Types | |
interface | combination_class |
Base class representing a combination signal. More... | |
Functions/Subroutines | |
type(combination_class) function, pointer | combination_construct (n_signals, combination_type, wgt_index) |
Construct a combination_class. More... | |
subroutine | combination_destruct (this) |
Deconstruct a combination_class object. More... | |
subroutine | combination_set_signal (this, signal, a, index) |
Set the object and coefficient for an index. More... | |
subroutine | combination_set_weight (this, a_model) |
Sets the weight factors from from the weight index. More... | |
real(rprec) function, dimension(4) | combination_get_modeled_signal (this, a_model, sigma, last_value) |
Calculates the modeled signal. More... | |
character(len=data_name_length) function | combination_get_type (this) |
Gets a discription of the combination type. More... | |
subroutine | combination_get_header (this, header) |
Gets a discription of the model and model sigma array indices. More... | |
subroutine | combination_write_auxiliary (this, iou, index, a_model) |
Write out auxiliary signal information to an output file. More... | |
Variables | |
integer, parameter | combination_type_length = 4 |
Maximum length of the combination type descritpion string. | |
integer, parameter | combination_none = -1 |
Type descriptor for combination type no type. | |
integer, parameter | combination_sum = 0 |
Type descriptor for combination type sum. | |
integer, parameter | combination_max = 1 |
Type descriptor for combination type max. | |
integer, parameter | combination_min = 2 |
Type descriptor for combination type min. | |
integer, parameter | combination_wavg = 3 |
Type descriptor for combination type weighted average. | |
Defines the base class of the type combination_class.
type (combination_class) function, pointer combination::combination_construct | ( | integer, intent(in) | n_signals, |
character (len=combination_type_length), intent(in) | combination_type, | ||
integer, intent(in) | wgt_index | ||
) |
Construct a combination_class.
Allocates memory and initializes a combination_class object. This just allocates the combination_class::signals and combination_class::a array. The indices of these arrays are set by combination_set_signal
[in] | n_signals | Number of signals in this combination. |
[in] | combination_type | The method to combine the signals. Possible values are combination_sum, combination_max, @ ref combination_min and combination_wavg |
[in] | wgt_index | Index number of the average weighting. |
Definition at line 102 of file combination.f.
subroutine combination::combination_destruct | ( | type (combination_class), intent(inout) | this | ) |
Deconstruct a combination_class object.
Deallocates memory and uninitializes a combination_class object.
[in,out] | this | A combination_class instance. |
Definition at line 163 of file combination.f.
subroutine combination::combination_get_header | ( | class (combination_class), intent(in) | this, |
character (len=data_name_length), dimension(7), intent(inout) | header | ||
) |
Gets a discription of the model and model sigma array indices.
Returns a description of the array indices for use when writting output files.
[in,out] |
Definition at line 418 of file combination.f.
real (rprec) function, dimension(4) combination::combination_get_modeled_signal | ( | class (combination_class), intent(inout) | this, |
type (model_class), pointer | a_model, | ||
real (rprec), dimension(4), intent(out) | sigma, | ||
real (rprec), dimension(4), intent(in) | last_value | ||
) |
Calculates the modeled signal.
This method combines the signals pointed in the combination_class::signals array.
[in,out] | this | A combination_class instance. |
[in] | a_model | A model instance. |
[out] | sigma | The modeled sigma. |
[in] | last_value | Last good value in case the signal did not change. |
Definition at line 273 of file combination.f.
character (len=data_name_length) function combination::combination_get_type | ( | class (combination_class), intent(in) | this | ) |
Gets a discription of the combination type.
Returns a description of the combination type for use when writting output files.
[in] | this | A combination_class instance. |
Definition at line 374 of file combination.f.
subroutine combination::combination_set_signal | ( | class (combination_class), intent(inout) | this, |
class (signal_class), pointer | signal, | ||
real (rprec), intent(in) | a, | ||
integer, intent(in) | index | ||
) |
Set the object and coefficient for an index.
[in,out] | this | A combination_class instance. |
[in] | signal | A signal_class instance. |
[in] | a | A coefficient for the signal |
[in] | index | The index to place the combined signal. |
Definition at line 206 of file combination.f.
subroutine combination::combination_set_weight | ( | class (combination_class), intent(inout) | this, |
type (model_class), intent(in) | a_model | ||
) |
Sets the weight factors from from the weight index.
Only assumed valid when the combination type is weighted average. This also assumes that the average of only two signals.
[in,out] | this | A combination_class instance. |
[in] | a_model | A model instance. |
Definition at line 238 of file combination.f.
subroutine combination::combination_write_auxiliary | ( | class (combination_class), intent(in) | this, |
integer, intent(in) | iou, | ||
integer, intent(in) | index, | ||
type (model_class), intent(in) | a_model | ||
) |
Write out auxiliary signal information to an output file.
Writes out the s_name and coefficient of the combined signals.
[in] | this | A signal_class instance. |
[in] | iou | A input/output representing the file to write to. |
[in] | index | A index of a signal. |
[in] | a_model | The equilibrium model. |
Definition at line 458 of file combination.f.