generateSample: Generate a random sample of observations

View source: R/Empirical_P_Values.R

generateSampleR Documentation

Generate a random sample of observations

Description

Generates a random sample of a series of observations. Each segment of the random sample corresponds to sampling from a normal with the given mean and standard deviation.

Usage

generateSample(means, sds, segLengths)

Arguments

means

A vector where each entry corresponds to the mean of a segment.

sds

A vector where each entry corresponds to the standard deviation of a segment.

segLengths

A vector where each entry corresponds to the length of a segment.

Value

Returns a vector of the same length as the sum of all segment lengths.

Author(s)

Matthew Quinn


matthewquinn1/changepointSelect documentation built on July 25, 2022, 7:12 p.m.