bleach_fraction_to_rate: Convert a bleaching fraction to a bleaching rate

Description Usage Arguments Value Examples

Description

Given a bleaching simulation of n_time_points time-points, this function tells you the bleaching rate that will result in the final time-point having bleached by a fraction frac relative to the first time-point

Usage

1
bleach_fraction_to_rate(frac, n_time_points)

Arguments

frac

A number. The fraction of bleaching desired for the final time-point relative to the first. So if you want 20% bleaching by the final time-point (i.e. 80% of fluorescence remains), set frac = 0.2.

n_time_points

A natural number. The number of time-points in the simulation.

Value

A number.

Examples

1
bleach_fraction_to_rate(0.2, 1000)  # 20% bleaching over 1000 time-points

rorynolan/brownded documentation built on May 5, 2019, 9:20 a.m.