Uniform (Real) functions in the Stochastic DuckDB extension
Function category
Uniform (Real)
24 functionsContinuous uniform on [min, max]. The default sampling distribution and a building block for inverse-transform sampling.
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x).
SELECT dist_uniform_real_cdf(0.0, 1.0, 0.5);
Output
| dist_uniform_real_cdf(0.0, 1.0, 0.5) |
|---|
| 0.5 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary cumulative distribution function (survival function) of the continuous uniform distribution, P(X > x).
SELECT dist_uniform_real_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_uniform_real_cdf_complement(0.0, 1.0, 0.5) |
|---|
| 0.5 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the cumulative hazard function of the continuous uniform distribution at x.
SELECT dist_uniform_real_chf(0.0, 1.0, 0.5);
Output
| dist_uniform_real_chf(0.0, 1.0, 0.5) |
|---|
| 0.6931471805599453 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Fits a continuous uniform distribution to x by maximum likelihood (the sample minimum and maximum). Returns a STRUCT with the fitted parameters (min, max) followed by the log_likelihood, aic and bic of the fit, or NULL when there are too few or only identical values.
SELECT dist_uniform_real_fit(x) AS fit
FROM (VALUES (1.2), (0.7), (2.9), (1.8), (0.4), (3.6), (1.1), (2.2), (5.3), (0.9)) t(x);
Output
| fit |
|---|
| {'min': 0.4, 'max': 5.3, 'log_likelihood': -15.892352051165808, 'aic': 35.78470410233162, 'bic': 36.38987428831971} |
Related functions
- dist_uniform_real_ks_test() — One-sample Kolmogorov-Smirnov test of whether x follows the continuous uniform distribution with the given parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the hazard function of the continuous uniform distribution at x.
SELECT dist_uniform_real_hazard(0.0, 1.0, 0.5);
Output
| dist_uniform_real_hazard(0.0, 1.0, 0.5) |
|---|
| 2.0 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
One-sample Kolmogorov-Smirnov test of whether x follows the continuous uniform distribution with the given parameters. Returns the statistic D and the asymptotic p-value.
SELECT dist_uniform_real_ks_test(x, 0.0, 1.0) AS ks
FROM (VALUES (1.2), (0.7), (2.9), (1.8), (0.4), (3.6), (1.1), (2.2), (5.3), (0.9)) t(x);
Output
| ks |
|---|
| {'statistic': 0.7, 'p_value': 0.00011090319886433517} |
Related functions
- dist_uniform_real_fit() — Fits a continuous uniform distribution to x by maximum likelihood (the sample minimum and maximum)
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the kurtosis of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_kurtosis(0.0, 1.0);
Output
| dist_uniform_real_kurtosis(0.0, 1.0) |
|---|
| 1.8 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the excess kurtosis of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_kurtosis_excess(0.0, 1.0);
Output
| dist_uniform_real_kurtosis_excess(0.0, 1.0) |
|---|
| -1.2 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the cumulative distribution function (CDF) of the continuous uniform distribution.
SELECT dist_uniform_real_log_cdf(0.0, 1.0, 0.5);
Output
| dist_uniform_real_log_cdf(0.0, 1.0, 0.5) |
|---|
| -0.6931471805599453 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the survival function of the continuous uniform distribution, log P(X > x).
SELECT dist_uniform_real_log_cdf_complement(0.0, 1.0, 0.5);
Output
| dist_uniform_real_log_cdf_complement(0.0, 1.0, 0.5) |
|---|
| -0.6931471805599453 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the natural logarithm of the probability density function (PDF) of the continuous uniform distribution at x. Useful for numerical stability when dealing with very small probabilities.
SELECT dist_uniform_real_log_pdf(0.0, 1.0, 0.5);
Output
| dist_uniform_real_log_pdf(0.0, 1.0, 0.5) |
|---|
| 0.0 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mean of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_mean(0.0, 1.0);
Output
| dist_uniform_real_mean(0.0, 1.0) |
|---|
| 0.5 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the median of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_median(0.0, 1.0);
Output
| dist_uniform_real_median(0.0, 1.0) |
|---|
| 0.5 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the mode (most likely value) of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_mode(0.0, 1.0);
Output
| dist_uniform_real_mode(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
x
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the probability density function (PDF) of the continuous uniform distribution at x.
SELECT dist_uniform_real_pdf(0.0, 1.0, 0.5);
Output
| dist_uniform_real_pdf(0.0, 1.0, 0.5) |
|---|
| 1.0 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the quantile function (inverse CDF) of the continuous uniform distribution. Returns the smallest x such that P(X <= x) >= p.
SELECT dist_uniform_real_quantile(0.0, 1.0, 0.95);
Output
| dist_uniform_real_quantile(0.0, 1.0, 0.95) |
|---|
| 0.95 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
p
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Computes the complementary quantile function of the continuous uniform distribution. Returns x such that P(X > x) = p, useful for upper tail quantiles.
SELECT dist_uniform_real_quantile_complement(0.0, 1.0, 0.95);
Output
| dist_uniform_real_quantile_complement(0.0, 1.0, 0.95) |
|---|
| 0.050000000000000044 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the range of the continuous uniform distribution as [min, max].
SELECT dist_uniform_real_range(0.0, 1.0);
Output
| dist_uniform_real_range(0.0, 1.0) |
|---|
| [-inf, inf] |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Generates a random sample from the continuous uniform distribution with the specified parameters.
SELECT dist_uniform_real_sample(0.0, 1.0);
Output
| dist_uniform_real_sample(0.0, 1.0) |
|---|
| 0.5645607376410458 |
Related functions
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
n
|
Type
BIGINT
|
Mode Positional | Description |
Description
Generates a list of n random samples from the continuous uniform distribution with the specified parameters.
SELECT dist_uniform_real_samples(0.0, 1.0, 5);
Output
| dist_uniform_real_samples(0.0, 1.0, 5) |
|---|
| [0.45641170887466526, 0.8796884817997231, 0.49046108726337156, 0.9897317956385792, 0.04997674184942479] |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the skewness of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_skewness(0.0, 1.0);
Output
| dist_uniform_real_skewness(0.0, 1.0) |
|---|
| 0.0 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the standard deviation of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_stddev(0.0, 1.0);
Output
| dist_uniform_real_stddev(0.0, 1.0) |
|---|
| 0.28867513459481287 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the support of the continuous uniform distribution as [min, max].
SELECT dist_uniform_real_support(0.0, 1.0);
Output
| dist_uniform_real_support(0.0, 1.0) |
|---|
| [0.0, 1.0] |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution
Signature
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
min
|
Type
DOUBLE
|
Mode Positional | Description |
Argument
max
|
Type
DOUBLE
|
Mode Positional | Description |
Description
Returns the variance of the continuous uniform distribution. Returns NULL when it is undefined for the given parameters.
SELECT dist_uniform_real_variance(0.0, 1.0);
Output
| dist_uniform_real_variance(0.0, 1.0) |
|---|
| 0.08333333333333333 |
Related functions
- dist_uniform_real_sample() — Generates a random sample from the continuous uniform distribution with the specified parameters
- dist_uniform_real_pdf() — Computes the probability density function (PDF) of the continuous uniform distribution at x
- dist_uniform_real_cdf() — Computes the cumulative distribution function (CDF) of the continuous uniform distribution, P(X <= x)
- dist_uniform_real_quantile() — Computes the quantile function (inverse CDF) of the continuous uniform distribution
- dist_uniform_real_mean() — Returns the mean of the continuous uniform distribution
- dist_uniform_real_stddev() — Returns the standard deviation of the continuous uniform distribution