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 Jan. 26, 2025, 2:55 p.m.