rate_meter_sim: Ratemeter Simulation

Description Usage Arguments Value Examples

View source: R/ratemeter_sim.R

Description

Plot simulated ratemeter readings once per second for 600 seconds. The meter starts with a reading of zero and builds up based on the time constant. Resolution uncertainty is established to express the uncertainty from reading an analog scale, including the instability of its readings. Many standard references identify the precision or resolution uncertainty of analog readings as half of the smallest increment. This should be considered the single coverage uncertainty for a very stable reading. When a reading is not very stable, evaluation of the reading fluctuation is evaluated in terms of numbers of scale increments covered by meter indication over a reasonable evaluation period.

Usage

1
2
3
4
5
6
7
rate_meter_sim(
  cpm_equilibrium,
  meter_scale_increments,
  trials = 600,
  tau = 9.5,
  log_opt = ""
)

Arguments

cpm_equilibrium

The expected count rate.

meter_scale_increments

The meter scale increments.

trials

Number of seconds to run simulation. Default = 600.

tau

equal to the Resistance * Capacitance of the counting circuit. Units = seconds. Default set to 9.5, which provides 90 seconds. If the user does not know the time constant, but has an estimate of equilibrium in some time, use tau.estimate.

log_opt

If logarithmic scale is needed, set to "y". If set to anything but blank (default), scale will be logarithmic.

Value

Plot of simulated meter reading every second..

Examples

1
2
3
rate_meter_sim(cpm_equilibrium = 270, meter_scale_increments = seq(100, 1000, 20))
rate_meter_sim(cpm_equilibrium = 2.7e5, meter_scale_increments = seq(2e5, 1e6, 2e4))
rate_meter_sim(450, seq(20, 1000, 20), trials = 1200, tau = 24.8534)

Example output



radsafer documentation built on April 13, 2021, 1:06 a.m.