draw_random_data: Draws random datagiven a vector 'data' and its associated...

Description Usage Arguments Value

Description

Draws random datagiven a vector 'data' and its associated uncertainties, either in the form of 'sigmas' or a set of 'lower.bounds' and 'upper.bounds'. If 'sigmas' is provided, draw from a Gaussian centered on the data. If bounds are provided, draw from a Gaussian truncated at the lower and upper bounds.

Usage

1
2
draw_random_data(data, sigmas = NULL, n.sigma = 2, n.replicates = 1,
  lower.bounds = NULL, upper.bounds = NULL)

Arguments

data

A vector of data.

sigmas

A vector of 1 sigma uncertainties associated with the data.

n.sigma

How many sigmas should be allowed?

n.replicates

The number of random data series to draw.

lower.bounds

A vector of lower bounds for the data.

upper.bounds

A vector of upper bounds for the data.

Value

A matrix of randomly drawn data series.


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