sampleFromCategoricalDistribution: Sample from a categorical distribution

View source: R/mixtureDensityUtilities.R

sampleFromCategoricalDistributionR Documentation

Sample from a categorical distribution

Description

Ported from:

Usage

sampleFromCategoricalDistribution(distribution)

Arguments

distribution

input categorical distribution from which to sample.

Details

    https://github.com/cpmpercussion/keras-mdn-layer/

Value

a single sample

Author(s)

Tustison NJ

Examples


library( keras )



ANTsX/ANTsRNet documentation built on Nov. 21, 2024, 4:07 a.m.