The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
commondata::gene2gamma Interface Reference
Collaboration diagram for commondata::gene2gamma:

Public Member Functions

elemental real(srp) function gamma2gene_reverse (neuronal_response, gs, gh, nc)
 Reverse-calculate perception value from the given neural response value. More...
 

Detailed Description

Definition at line 5278 of file m_common.f90.

Member Function/Subroutine Documentation

◆ gamma2gene_reverse()

elemental real(srp) function commondata::gene2gamma::gamma2gene_reverse ( real(srp), intent(in)  neuronal_response,
real(srp), intent(in)  gs,
real(srp), intent(in)  gh,
integer, intent(in), optional  nc 
)

Reverse-calculate perception value from the given neural response value.

Calculates the value of the raw perception from the neural response function. This is the reverse of the gamma2gene with many components. It is assumed that all x and y values are the same, so the equation solved for the most trivial case. Calculated according to the formula:

\[ P = y\left ( \frac{R}{n-R} \right )^{1/x} , \]

where $ P $ is the perception value, $ R $ is the neural response, $ x $ and $ y $ are two genes.

Returns
Signal level for specific neural response, back calculated.
Parameters
[in]neuronal_responseneuronal response.
[in]gsshape parameter of the sigmoid function.
[in]ghhalf-max parameter of the sigmoid function.
[in]ncNumber of additive components. Optional, if absent assumed 1 (single component).
Note
This function is useful for guessing the average start values of genetically determined traits with Gaussian distribution.
Note that it is quite difficult to get really small gamma2gene values as the signal value should be really small: e.g. to get neural response 1.5E-5 (Fulton condition), we need signal = 2E-12. So, the function very quickly loses precision as we approach really low values. Need kind 8 or 16 precision?
Warning
This is quite a crude guess at low values. At lower values underestimates R, real value is higher. This is due to the limitation that R should never be below zero, causing above-zero truncation.
Returns
Signal level for specific neural response, back calculated.

Definition at line 7256 of file m_common.f90.


The documentation for this interface was generated from the following file: