correctThin: Checks if thin is conistent with nTotalSamples samples and if...

Description Usage Arguments Details Author(s)

View source: R/utils.R

Description

Checks if thin is conistent with nTotalSamples samples and if not corrects it.

Usage

1
correctThin(nTotalSamples, thin, autoThinFraction = 0.001)

Arguments

nTotalSamples

total number of rows/samples

thin

thinning

autoThinFraction

fraction of the data that will be sampled when thin is set to "auto". E.g. 0.5 means thin will be nTotalSamples * 0.5. The resulting thin value is rounded down to the next integer.

Details

Checks if the thin argument is consistent with the data consisting of nTotalSamples samples/rows and corrects thin if not.

Author(s)

Tankred Ott

Tankred Ott


BayesianTools documentation built on Dec. 10, 2019, 1:08 a.m.