đź”´ Live TV: advanced/functions/binomial truncated.html - Jadwal Siaran Langsung

binomial (truncated)

The distribution binomial(p, n) is stretched by the stretch coefficient, then shifted to the right by shift, after that it is truncated to fit into the [min, max] interval. Truncation is performed by discarding any sample outside this interval and taking the next try.

For more details, see binomial().

binomial(double min, double max, double p, int n, double shift, double stretch)

Description
Generates a sample of the truncated binomial distribution.
Parameters
NameType of valueDescription
mindoubleThe minimum value that this function will return. The distribution is truncated to return values above this. If the sample (stretched and shifted) is below this value, it will be discarded and another sample will be drawn. Use -infinity for “No limit”.
maxdoubleThe maximum value that this function will return. The distribution is truncated to return values below this. If the sample (stretched and shifted) is bigger than this value it will be discarded and another sample will be drawn. Use infinity for “No limit”.
pdoubleThe probability of the event occurrence.
nintThe number of trials.
shiftdoubleThe shift parameter that indicates how much the (stretched) distribution will be shifted to the right.
stretchdoubleThe stretch parameter that indicates how much the distribution will be stretched.
Result
TypeDescription
intThe generated sample.

binomial(double min, double max, double p, int n, double shift, double stretch, java.util.Random r)

Description
Generates a sample of the truncated binomial distribution using the specified random number generator.
Parameters
NameType of valueDescription
mindoubleThe minimum x value.
maxdoubleThe maximum x value.
pdoubleThe probability of the event occurrence.
nintThe number of trials.
shiftdoubleThe shift parameter.
stretchdoubleThe stretch parameter.
rjava.util.RandomThe random number generator.
Result
TypeDescription
intThe generated sample.

This document includes content from the “Stat::Fit User's Manual”. Copyright 2016 Geer Mountain Software Corp.

How can we improve this article?