getLNormFactors: Get log-normal factors

View source: R/splat-simulate.R

getLNormFactorsR Documentation

Get log-normal factors

Description

Randomly generate multiplication factors from a log-normal distribution.

Usage

getLNormFactors(n.facs, sel.prob, neg.prob, fac.loc, fac.scale)

Arguments

n.facs

Number of factors to generate.

sel.prob

Probability that a factor will be selected to be different from 1.

neg.prob

Probability that a selected factor is less than one.

fac.loc

Location parameter for the log-normal distribution.

fac.scale

Scale factor for the log-normal distribution.

Value

Vector containing generated factors.


Oshlack/splatter documentation built on Dec. 10, 2024, 3:48 p.m.