draw_agemodel: Draw a random, strictly increasing age model given a vector...

Description Usage Arguments Value

Description

Draw a random, strictly increasing age model given a vector 'ages' and their associated 1 sigma uncertainties ('sigmas') according to a Gaussian. Requires that the difference between time steps should be within a ratio firstdiffagreementratio' (default to 1, or 100 Always returns a strictly increasing agemodel.

Usage

1
2
draw_agemodel(ages, sigmas, n.sigma = 2, firstdiffagreementratio = 1,
  tolerance = 10^-12)

Arguments

ages

A vector containing the age data. Must be strictly increasing.

sigmas

A vector containing the 1 sigma uncertainties associated with the age data.

n.sigma

Which sigma level?

firstdiffagreementratio

How large can the slope between time steps be? Defaults to 1, or 100 percent.

tolerance

A tolerance level to speed up computations when age points are very close.

Value

An randomly drawn age model.


kahaaga/tstools documentation built on May 24, 2019, 5:01 a.m.