⭐ Football Update: advanced/functions/normal truncated.html - Pertandingan Hari Ini

normal (truncated)

The distribution normal(1, 0) 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 every sample outside this interval and taking subsequent try.

For more details, see normal().

normal(double min, double max, double shift, double stretch)

Description
Generates a sample of the truncated normal 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”.
shiftdoubleThe shift parameter that indicates how much the (stretched) distribution will be shifted to the right = mean value.
stretchdoubleThe stretch parameter that indicates how much the distribution will be stretched = standard deviation.
Result
TypeDescription
doubleThe generated sample.

normal(double min, double max, double shift, double stretch, java.util.Random r)

Description
Generates a sample of the truncated normal distribution using the specified random number generator.
Parameters
NameType of valueDescription
mindoubleThe minimum x value.
maxdoubleThe maximum x value.
shiftdoubleThe shift parameter = mean value.
stretchdoubleThe stretch parameter = standard deviation.
rjava.util.RandomThe random number generator.
Result
TypeDescription
doubleThe 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?