YEAR: 2020 126 | COPYRIGHT HOLDER: Michael Holton Price 127 |128 | 129 |
See magrittr::%>% for details.
lhs %>% rhs133 | 134 | 135 | 136 |
R/bd_load_calib_curve.R
110 | bd_load_calib_curve.RdParse and return the radiocarbon calibration curve stored in data
115 |bd_load_calib_curve(calibCurve)118 | 119 |
| calibCurve | 124 |Name of calibration curve |
125 |
|---|
The calibration dataframe, with columns yearBP, uncalYearBP, and uncalYearBPError
131 | 132 |bd_norm_pdf_mat.RdThe input density matrix fMat has dimensions S x G, 113 | where S is the number of samples and G is the number of grid points 114 | at which fMat was evaluated. 115 | Normalize each row to integrate to 1 using the input grid spacing dy.
116 |bd_norm_pdf_mat(fMat, dy)119 | 120 |
| fMat | 125 |The input density matrix with dimensions S x G |
126 |
|---|---|
| dy | 129 |The grid spacing |
130 |
The density matrix with normalized rows
136 | 137 |bd_convert_gauss_mix_param_vect_to_list.RdFor the input, parameterized Gaussian mixture convert from a 113 | vector representation (which is more efficient for calculations 114 | and the form expected by, e.g., bayDem_calcGaussMixPdf.R) list 115 | (returned by stan).
116 |bd_convert_gauss_mix_param_vect_to_list(th)119 | 120 |
| th | 125 |A vector that parameterizes the Gaussian mixture. See 126 | bayDem_calcGaussMixPdf.R |
127 |
|---|
samp A list that parameterizes the Gaussian mixture. See See
133 | 134 |bd_convert_gauss_mix_param_list_to_vect.RdFor the input, parameterized Gaussian mixture convert from a 113 | list (returned by stan) to a vector representation (which is 114 | more efficient for calculations and the form expected by, e.g., 115 | bayDem_calcGaussMixPdf.R).
116 |bd_convert_gauss_mix_param_list_to_vect(samp)119 | 120 |
| samp | 125 |A list that parameterizes the Gaussian mixture. See 126 | bayDem_samplePrior.R. |
127 |
|---|
th A vector that parameterizes the Gaussian mixture. See 133 | bayDem_calcGaussMixPdf.R
134 | 135 |Copyright (c) 2020 Michael Holton Price
128 |Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
129 |The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
130 |THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
131 |R/radiocarbon_functions.R
125 | load_calib_curve.RdParse and return the radiocarbon calibration curve stored in data.
130 |load_calib_curve(calib_curve)133 | 134 |
| calib_curve | 139 |Name of calibration curve. One of: "intcal20", "marine20", 140 | "shcal20", "intcal13", "marine13", or "shcal13" |
141 |
|---|
The calibration dataframe, with columns year_BP, uncal_year_BP, and 147 | uncal_year_BP_error
148 | 149 |R/bd_plot_known_sim_density.R
110 | bd_plot_known_sim_density.RdPlot the known simulation density
115 |bd_plot_known_sim_density(an, add = F, ...)118 | 119 |
| an | 124 |A list-like object generated by bd_analyze_soln with information on the quantiles of the density function and growth rate |
125 |
|---|---|
| add | 128 |(default: |
129 |
| ... | 132 |Additional parameters to pass to plot / lines |
133 |
The input, an, is the result of a call to bd_analyze_soln. It is a 139 | list-like object with information on the quantiles of the density function 140 | and growth rate. By default, a new plot is made, but if add = TRUE the curve 141 | is added to the active plot.
142 | 143 |