aboutsummaryrefslogtreecommitdiff
path: root/R/sigma_twocomp.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2018-07-18 15:18:30 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2018-07-18 15:58:46 +0200
commit0b98c459c30a0629a728acf6b311de035c55fb64 (patch)
treef146faf4802da38862aa14b0268265f3fad9ba34 /R/sigma_twocomp.R
parentd3ed95f2a0a43ed74b02ea90e35d043ed4e1e72f (diff)
Correct references to the Rocke and Lorenzato model
Rename 'sigma_rl' to 'sigma_twocomp' as the Rocke and Lorenzato model assumes lognormal distribution for large y. Rebuild static documentation.
Diffstat (limited to 'R/sigma_twocomp.R')
-rw-r--r--R/sigma_twocomp.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/R/sigma_twocomp.R b/R/sigma_twocomp.R
new file mode 100644
index 00000000..b06816c1
--- /dev/null
+++ b/R/sigma_twocomp.R
@@ -0,0 +1,3 @@
+ sigma_twocomp <- function(y, sigma_low, rsd_high) {
+ sqrt(sigma_low^2 + y^2 * rsd_high^2)
+ }

Contact - Imprint