hump: Sinusoidal population growth model

Description Usage Arguments Value Examples

View source: R/hump.r

Description

Provides the expected pathogen population at any point during infection

Usage

1
hump(x, span, max.size)

Arguments

x

Time after infection.

span

Total duration of infection.

max.size

Expected maximum population size, attained at midpoint of infection.

Value

Returns expected population size at x.

Examples

1
hump(1:200, span=200, max.size=1000)

Example output

  [1]    0.2467198    0.9866358    2.2190177    3.9426493    6.1558297
  [6]    8.8563746   12.0416190   15.7084194   19.8531572   24.4717419
 [11]   29.5596155   35.1117571   41.1226872   47.5864738   54.4967379
 [16]   61.8466600   69.6289865   77.8360372   86.4597129   95.4915028
 [21]  104.9224938  114.7433786  124.9444652  135.5156863  146.4466094
 [26]  157.7264470  169.3440673  181.2880051  193.5464732  206.1073739
 [31]  218.9583111  232.0866025  245.4792921  259.1231629  273.0047501
 [36]  287.1103542  301.4260547  315.9377237  330.6310399  345.4915028
 [41]  360.5044470  375.6550564  390.9283793  406.3093427  421.7827675
 [46]  437.3333832  452.9458433  468.6047402  484.2946205  500.0000000
 [51]  515.7053795  531.3952598  547.0541567  562.6666168  578.2172325
 [56]  593.6906573  609.0716207  624.3449436  639.4955530  654.5084972
 [61]  669.3689601  684.0622763  698.5739453  712.8896458  726.9952499
 [66]  740.8768371  754.5207079  767.9133975  781.0416889  793.8926261
 [71]  806.4535268  818.7119949  830.6559327  842.2735530  853.5533906
 [76]  864.4843137  875.0555348  885.2566214  895.0775062  904.5084972
 [81]  913.5402871  922.1639628  930.3710135  938.1533400  945.5032621
 [86]  952.4135262  958.8773128  964.8882429  970.4403845  975.5282581
 [91]  980.1468428  984.2915806  987.9583810  991.1436254  993.8441703
 [96]  996.0573507  997.7809823  999.0133642  999.7532802 1000.0000000
[101]  999.7532802  999.0133642  997.7809823  996.0573507  993.8441703
[106]  991.1436254  987.9583810  984.2915806  980.1468428  975.5282581
[111]  970.4403845  964.8882429  958.8773128  952.4135262  945.5032621
[116]  938.1533400  930.3710135  922.1639628  913.5402871  904.5084972
[121]  895.0775062  885.2566214  875.0555348  864.4843137  853.5533906
[126]  842.2735530  830.6559327  818.7119949  806.4535268  793.8926261
[131]  781.0416889  767.9133975  754.5207079  740.8768371  726.9952499
[136]  712.8896458  698.5739453  684.0622763  669.3689601  654.5084972
[141]  639.4955530  624.3449436  609.0716207  593.6906573  578.2172325
[146]  562.6666168  547.0541567  531.3952598  515.7053795  500.0000000
[151]  484.2946205  468.6047402  452.9458433  437.3333832  421.7827675
[156]  406.3093427  390.9283793  375.6550564  360.5044470  345.4915028
[161]  330.6310399  315.9377237  301.4260547  287.1103542  273.0047501
[166]  259.1231629  245.4792921  232.0866025  218.9583111  206.1073739
[171]  193.5464732  181.2880051  169.3440673  157.7264470  146.4466094
[176]  135.5156863  124.9444652  114.7433786  104.9224938   95.4915028
[181]   86.4597129   77.8360372   69.6289865   61.8466600   54.4967379
[186]   47.5864738   41.1226872   35.1117571   29.5596155   24.4717419
[191]   19.8531572   15.7084194   12.0416190    8.8563746    6.1558297
[196]    3.9426493    2.2190177    0.9866358    0.2467198    0.0000000

seedy documentation built on May 29, 2017, 10:58 a.m.