From 614c8f627fe700d21208b467e57ca7dc0e0fc990 Mon Sep 17 00:00:00 2001 From: saurabhraghuvanshii Date: Wed, 8 Jan 2025 21:18:11 +0530 Subject: [PATCH] feat: remove trailing space --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../stats/base/dists/t/quantile/README.md | 92 ++++++++++ .../dists/t/quantile/benchmark/benchmark.js | 8 + .../t/quantile/benchmark/benchmark.native.js | 68 +++++++ .../dists/t/quantile/benchmark/c/Makefile | 146 +++++++++++++++ .../dists/t/quantile/benchmark/c/benchmark.c | 138 ++++++++++++++ .../stats/base/dists/t/quantile/binding.gyp | 170 ++++++++++++++++++ .../base/dists/t/quantile/examples/c/Makefile | 146 +++++++++++++++ .../dists/t/quantile/examples/c/example.c | 38 ++++ .../stats/base/dists/t/quantile/include.gypi | 53 ++++++ .../stdlib/stats/base/dists/t/quantile.h | 38 ++++ .../stats/base/dists/t/quantile/lib/native.js | 62 +++++++ .../stats/base/dists/t/quantile/manifest.json | 76 ++++++++ .../stats/base/dists/t/quantile/package.json | 3 + .../stats/base/dists/t/quantile/src/Makefile | 70 ++++++++ .../stats/base/dists/t/quantile/src/addon.c | 23 +++ .../stats/base/dists/t/quantile/src/main.c | 37 ++++ .../base/dists/t/quantile/test/test.native.js | 45 +++++ 17 files changed, 1213 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/include/stdlib/stats/base/dists/t/quantile.h create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/t/quantile/test/test.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/t/quantile/README.md b/lib/node_modules/@stdlib/stats/base/dists/t/quantile/README.md index c3c3ef441379..c2b32ecbf5d8 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/t/quantile/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/t/quantile/README.md @@ -143,6 +143,98 @@ for ( i = 0; i < 10; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/base/dists/t/quantile.h" +``` + +#### stdlib_base_dists_t_quantile( v ) + +Returns the standard deviation of a Student's t distribution. + +```c +double out = stdlib_base_dists_t_quantile( 9.0 ); +// returns 0.0 +``` + +The function accepts the following arguments: + +- **v**: `[in] double` degrees of freedom. + +```c +double stdlib_base_dists_t_quantile( const double v ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/base/dists/t/quantile.h" +#include +#include + +static double random_uniform( const double min, const double max ) { + double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); + return min + ( v*(max-min) ); +} + +int main( void ) { + double v; + double y; + int i; + + for ( i = 0; i < 25; i++ ) { + v = random_uniform( 0.0, 20.0 ); + y = stdlib_base_dists_t_quantile( v ); + printf( "v: %lf, SD(X;v): %lf\n", v, y ); + } +} +``` + +
+ + + +
+ + +