Rev Language Reference


dnWeightedSample

Usage

dnWeightedSample(Distribution__TimeTree baseDistribution, Natural numSamples)

Arguments

baseDistribution : Distribution__TimeTree (pass by const reference)
The base distribution(s) for the sampled values.
numSamples : Natural (pass by value)
The number of samples in the weighted average.
Default : 0

Domain Type