The AHA Model
Revision: 12809
Reference implementation 04 (HEDG02_04)
|
Sigmoidal relationship between environmental factor and the organism response, as affected by the genotype and environmental error, e.g. perception and neuronal response or intrinsic baseline and phenotypic hormone levels. More...
Public Member Functions | |
real(srp) function | gamma2gene_additive_i4 (gs, gh, signal, erpcv) |
The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response. More... | |
real(srp) function | gamma2gene_additive_r4 (gs, gh, signal, erpcv) |
The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response. More... | |
elemental real(srp) function | gamma2gene_fake_vals (signal, gs, gh, n_acomps) |
This "fake" version of the gamma2gene is used to guess the response values in calculations. More... | |
Sigmoidal relationship between environmental factor and the organism response, as affected by the genotype and environmental error, e.g. perception and neuronal response or intrinsic baseline and phenotypic hormone levels.
The real function gamma2gene
finds the sigmoid relationship for a multicomponent allele impact on the neuronal response:
Here, R is the neuronal response, P the strength of the sensory input (scaled 0-1), and x and y are two genes. The indices refer to the additive components of the alleles. Note that their number is set by the parameter ADDITIVE_COMPS
. Further, erpcv
defines the coefficient of variation for the perception error (with respect to its true value). Perception is calculated as
where is the true environmental variable and is Gaussian error. The perception value with error is implemented as a normal Gaussian variate with the mean equal to the true signal
value and the coefficient of variation equal to the erpcv
input parameter: Therefore, the raw error variance in the RNORM
function is equal to the square: . We also impose strict limit on perception:
The gamma2gene
function is used as a calculation backend in the "umbrella" procedure the_genome::individual_genome::neuro_resp()
that translates to the_genome::individual_genome::trait_init()
and the_genome::individual_genome::trait_set()
.
gamma2gene
, currently there are two version making use of the additive allele components (normally used) accepting allele values either integer (assumed raw alleles) or real (assumed values rescaled to 0:1) type. gs
and gh
) it automatically invokes the allelescale
function to convert integer allele values to real raw values within the range 1:0 that go to the sigmoid function (via alleleconv). However, when these arguments are real type, it is assumed that it is the true converted 0:1 real gene values and allelescale
is not invoked prior to alleleconv
. Definition at line 5269 of file m_common.f90.
real(srp) function commondata::gamma2gene::gamma2gene_additive_i4 | ( | integer, dimension(:), intent(in) | gs, |
integer, dimension(:), intent(in) | gh, | ||
real(srp), intent(in) | signal, | ||
real(srp), intent(in), optional | erpcv | ||
) |
The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response.
The real function gamma2gene finds the sigmoid relationship for a multicomponent allele impact on the neuronal response:
Here, R is the neuronal response, P the strength of the sensory input (scaled 0-1), and x and y are two genes. The indices refer to the additive components of the alleles. Note that their number is set by the parameter ADDITIVE_COMPS
. Further, erpcv
defines the coefficient of variation for the perception error (with respect to its true value).
[in] | gs | shape: Gene/constant determining the shape of the gamma function. Note that the raw integer gene values are accepted by this function as commondata::allelescale() is called automatically inside. |
[in] | gh | half-max effect: Gene/constant for the signal strength giving half max effect. Note that the raw integer gene values are accepted by this function as commondata::allelescale() is called automatically inside. |
[in] | signal | perception: Input value of (external or internal) stimulus perception. |
[in] | erpcv | error: Additive error of stimulus perception, Gaussian variance added to the true environmental variable. If this parameter is absent, no perception error is introduced. Maxima function for quick calc: g2gene(p,x,y,n) := n * ( (p/y)^x / (1+(p/y)^x) );
|
gamma2gene
accepts integer arrays. It does invoke commondata::allelescale()
automatically inside. Definition at line 7003 of file m_common.f90.
real(srp) function commondata::gamma2gene::gamma2gene_additive_r4 | ( | real(srp), dimension(:), intent(in) | gs, |
real(srp), dimension(:), intent(in) | gh, | ||
real(srp), intent(in) | signal, | ||
real(srp), intent(in), optional | erpcv | ||
) |
The function gamma2gene finds the sigmoid relationship for a complex multicomponent 2-allele impact on the neuronal response.
[in] | shape | Gene/constant determining the shape of the gamma function. Note that the raw integer gene values are accepted by this function as commondata::allelescale() is called automatically inside. |
[in] | half-max | effect: Gene/constant for the signal strength giving half max effect. Note that the raw integer gene values are accepted by this function as commondata::allelescale() is called automatically inside. |
[in] | perception | Input value of (external or internal) stimulus perception. |
[in] | error | Additive error of stimulus perception, Gaussian variance added to the true environmental variable. If this parameter is absent, no perception error is introduced. |
The real function gamma2gene finds the sigmoid relationship for a multicomponent allele impact on the neuronal response:
Here, R is the neuronal response, P the strength of the sensory input (scaled 0-1), and x and y are two genes. The indices refer to the additive components of the alleles. Note that their number is set by the parameter ADDITIVE_COMPS
. Further, erpcv
defines the coefficient of variation for the perception error (with respect to its true value).
Maxima function for quick calc:
gamma2gene
accepts real arrays. It does not invoke commondata::allelescale()
automatically inside. Definition at line 7115 of file m_common.f90.
elemental real(srp) function commondata::gamma2gene::gamma2gene_fake_vals | ( | real(srp), intent(in) | signal, |
real(srp), intent(in), optional | gs, | ||
real(srp), intent(in), optional | gh, | ||
integer, intent(in), optional | n_acomps | ||
) |
This "fake" version of the gamma2gene
is used to guess the response values in calculations.
predicted_val | a predicted value (scalar or array) of the sigmoidal neuronal response function. See gamma2gene for details. |
Definition at line 7193 of file m_common.f90.