rad  1.5.2
Radial Attention Model
Functions
rad_specs.h File Reference

Radial attention model functional specification. More...

Go to the source code of this file.

Functions

double radt (const struct objvar_st *v)
 Radius transition. More...
 
double util (const struct objvar_st *v)
 Temporal utility. More...
 
double cost (const struct objvar_st *v)
 Attentional costs. More...
 
double wltt (const struct objvar_st *v)
 Wealth transition. More...
 

Detailed Description

Radial attention model functional specification.

This file contains the declarations of the radial attention example of the article. It uses exponential specification for effort costs. If you want to change the specification you have to redefine the corresponding macros of this file and re-compile.

Function Documentation

◆ cost()

double cost ( const struct objvar_st v)

Attentional costs.

Calculates the attentional costs by

\[ c(s,r') = (\mathrm{e}^{\alpha s} - 1)(1 - \gamma r'(s,r)). \]

Parameters
vObjective function data
Returns
Calculated costs.
See also
radt(const objvar_t*)

◆ radt()

double radt ( const struct objvar_st v)

Radius transition.

Calculates the next date's radius by

\[ r'(s,r) = 1 - (1 - \delta r) \mathrm{e}^{-s}. \]

Parameters
vObjective function data
Returns
Calculated next date's radius.

◆ util()

double util ( const struct objvar_st v)

Temporal utility.

Calculates the temporal utility by

\[ u(q,r) = r'(s,r) (1 - \mathrm{e}^{-q}). \]

Parameters
vObjective function data
Returns
Calculated temporal utility.
See also
radt(const objvar_t*)

◆ wltt()

double wltt ( const struct objvar_st v)

Wealth transition.

Calculates the next date's wealth

\[ d(x,r') = R (x - r'(s,r) q). \]

Parameters
vObjective function data
Returns
Calculated costs.
See also
radt(const objvar_t*)