GoogleCloudPlatform / bigquery-utils

Useful scripts, udfs, views, and other utilities for migration and data warehouse operations in BigQuery.
https://cloud.google.com/bigquery/
Apache License 2.0
1.07k stars 269 forks source link

Adding studentt_cdf UDF #421

Closed dqmis closed 4 weeks ago

dqmis commented 4 weeks ago

Adding studentt_cdf UDF. The UDF uses jStat.studentt.cdf function.

studentt_cdf(x FLOAT64, dof FLOAT64)

Returns the value of x in the cdf of the Student's T distribution with dof degrees of freedom.

Sample Query:

SELECT `bqutils.fn.studentt_cdf`(1.0, 2.0) as studentt_cdf;

Results:

Row studentt_cdf
1 0.788675134594813
google-cla[bot] commented 4 weeks ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

afleisc commented 4 weeks ago

/gcbrun