Learn R Programming

gettingtothebottom (version 3.2)

generate_nnm: Generate random nonnegative mixture components

Description

generate_nnm Function to random nonnegative mixture components

Usage

generate_nnm(n, p, seed = 12345)

Arguments

n
Number of samples
p
Number of components
seed
Random seed

Examples

Run this code
n <- 1e3
p <- 10
nnm <- generate_nnm(n,p)

Run the code above in your browser using DataLab