Skip to content

Commit ab5d777

Browse files
committed
chore: clean-up
--- 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: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - 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 ---
1 parent 4928e74 commit ab5d777

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

lib/node_modules/@stdlib/stats/base/dists/cauchy/quantile/include/stdlib/stats/base/dists/cauchy/quantile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the quantile function for a Cauchy distribution with probability `p`, location parameter `x0` and scale parameter `gamma`.
30+
* Evaluates the quantile function for a Cauchy distribution with location parameter `x0` and scale parameter `gamma` at a probability `p`.
3131
*/
3232
double stdlib_base_dists_cauchy_quantile( const double p, const double x0, const double gamma );
3333

lib/node_modules/@stdlib/stats/base/dists/cauchy/quantile/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "stdlib/constants/float64/pi.h"
2323

2424
/**
25-
* Evaluates the quantile function for a Cauchy distribution with probability `p`, location parameter `x0` and scale parameter `gamma`.
25+
* Evaluates the quantile function for a Cauchy distribution with location parameter `x0` and scale parameter `gamma` at a probability `p`.
2626
*
2727
* @param p input probability
2828
* @param x0 location parameter

lib/node_modules/@stdlib/stats/base/dists/cauchy/quantile/test/test.native.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,29 @@ tape( 'the function evaluates the quantile function at `p` given `x0` and `gamma
111111
var y;
112112
var i;
113113

114+
/*
115+
* Higher tolerance than EPS because Julia gives slightly different results for
116+
* |x| ~<= 3*pi/4:
117+
*
118+
* Example 1:
119+
* x = -1.35646279095478;
120+
* Julia (tan): -4.593961172862999
121+
* stdlib (tan): -4.593961172863
122+
* Mathematica: -4.59396117286300026311049650877442413097818001966176559315
123+
*
124+
* Example 2:
125+
* x = 1.4710248292410089
126+
* Julia (tan): 9.989623320530624
127+
* stdlib (tan): 9.989623320530626
128+
* Mathematica: 9.989623320530629158499137574831736702146195199133529403233
129+
*
130+
* Example 3:
131+
* x = 1.528545878614728
132+
* Julia (tan): 23.654302824341386
133+
* stdlib (tan): 23.65430282434139
134+
* Mathematica: 23.65430282434144042648214719732782590575979471046811610915...
135+
*/
136+
114137
expected = largeGamma.expected;
115138
p = largeGamma.p;
116139
x0 = largeGamma.x0;
@@ -138,29 +161,6 @@ tape( 'the function evaluates the quantile function at `p` given `x0` and `gamma
138161
var y;
139162
var i;
140163

141-
/*
142-
* Higher tolerance than EPS because Julia gives slightly different results for
143-
* |x| ~<= 3*pi/4:
144-
*
145-
* Example 1:
146-
* x = -1.35646279095478;
147-
* Julia (tan): -4.593961172862999
148-
* stdlib (tan): -4.593961172863
149-
* Mathematica: -4.59396117286300026311049650877442413097818001966176559315
150-
*
151-
* Example 2:
152-
* x = 1.4710248292410089
153-
* Julia (tan): 9.989623320530624
154-
* stdlib (tan): 9.989623320530626
155-
* Mathematica: 9.989623320530629158499137574831736702146195199133529403233
156-
*
157-
* Example 3:
158-
* x = 1.528545878614728
159-
* Julia (tan): 23.654302824341386
160-
* stdlib (tan): 23.65430282434139
161-
* Mathematica: 23.65430282434144042648214719732782590575979471046811610915...
162-
*/
163-
164164
expected = positiveMedian.expected;
165165
p = positiveMedian.p;
166166
x0 = positiveMedian.x0;

0 commit comments

Comments
 (0)