Skip to content

Commit b44b420

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: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - 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: na - task: lint_python status: missing_dependencies - task: lint_r status: na - task: lint_c_src status: na - 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: passed - task: lint_typescript_tests status: passed - 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 ---
1 parent 09404b0 commit b44b420

File tree

8 files changed

+27
-26
lines changed

8 files changed

+27
-26
lines changed

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# Logarithm of Cumulative Distribution Function
2222

23-
> Planck (discrete exponential) distribution logarithm of [cumulative distribution function][cdf].
23+
> Evaluate the logarithm of [cumulative distribution function][cdf] Planck (discrete exponential) distribution.
2424
2525
<section class="intro">
2626

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939

4040
{{alias}}.factory( λ )
4141
Returns a function for evaluating the logarithm of the cumulative
42-
distribution function (CDF) of a Planck distribution with shape
43-
parameter `λ`.
42+
distribution function (CDF) of a Planck distribution with shape parameter
43+
`λ`.
4444

4545
Parameters
4646
----------

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ interface LogCDF {
8686
}
8787

8888
/**
89-
* Planck distribution logarithm of cumulative distribution function (CDF).
89+
* Evaluates the logarithm of cumulative distribution function (CDF) for a Planck distribution with shape parameter `lambda`.
9090
*
9191
* @param x - input value
9292
* @param lambda - shape parameter

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/docs/types/test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import logcdf = require( './index' );
2323

2424
// The function returns a number...
2525
{
26-
logcdf( 2, 0.4 ); // $ExpectType number
27-
logcdf( 1, 0.2 ); // $ExpectType number
26+
logcdf( 2.0, 0.4 ); // $ExpectType number
27+
logcdf( 1.0, 0.2 ); // $ExpectType number
2828
}
2929

3030
// The compiler throws an error if the function is provided values other than two numbers...
@@ -36,19 +36,19 @@ import logcdf = require( './index' );
3636
logcdf( {}, 0.4 ); // $ExpectError
3737
logcdf( ( x: number ): number => x, 0.2 ); // $ExpectError
3838

39-
logcdf( 9, true ); // $ExpectError
40-
logcdf( 9, false ); // $ExpectError
41-
logcdf( 5, '5' ); // $ExpectError
42-
logcdf( 8, [] ); // $ExpectError
43-
logcdf( 9, {} ); // $ExpectError
44-
logcdf( 8, ( x: number ): number => x ); // $ExpectError
39+
logcdf( 9.0, true ); // $ExpectError
40+
logcdf( 9.0, false ); // $ExpectError
41+
logcdf( 5.0, '5' ); // $ExpectError
42+
logcdf( 8.0, [] ); // $ExpectError
43+
logcdf( 9.0, {} ); // $ExpectError
44+
logcdf( 8.0, ( x: number ): number => x ); // $ExpectError
4545
}
4646

4747
// The compiler throws an error if the function is provided an unsupported number of arguments...
4848
{
4949
logcdf(); // $ExpectError
50-
logcdf( 2 ); // $ExpectError
51-
logcdf( 2, 0.8, 4 ); // $ExpectError
50+
logcdf( 2.0 ); // $ExpectError
51+
logcdf( 2.0, 0.8, 4.0 ); // $ExpectError
5252
}
5353

5454
// Attached to main export is a `factory` method which returns a function...
@@ -59,7 +59,7 @@ import logcdf = require( './index' );
5959
// The `factory` method returns a function which returns a number...
6060
{
6161
const fcn = logcdf.factory( 0.4 );
62-
fcn( 2 ); // $ExpectType number
62+
fcn( 2.0 ); // $ExpectType number
6363
}
6464

6565
// The compiler throws an error if the function returned by the `factory` method is provided an invalid argument...
@@ -77,8 +77,8 @@ import logcdf = require( './index' );
7777
{
7878
const fcn = logcdf.factory( 0.4 );
7979
fcn(); // $ExpectError
80-
fcn( 2, 0 ); // $ExpectError
81-
fcn( 2, 0, 1 ); // $ExpectError
80+
fcn( 2.0, 0.0 ); // $ExpectError
81+
fcn( 2.0, 0.0, 1.0 ); // $ExpectError
8282
}
8383

8484
// The compiler throws an error if the `factory` method is provided a value other than a number...
@@ -93,6 +93,6 @@ import logcdf = require( './index' );
9393

9494
// The compiler throws an error if the `factory` method is provided an unsupported number of arguments...
9595
{
96-
logcdf.factory( 0, 0.2 ); // $ExpectError
97-
logcdf.factory( 0, 0.4, 8 ); // $ExpectError
96+
logcdf.factory( 0.0, 0.2 ); // $ExpectError
97+
logcdf.factory( 0.0, 0.4, 8 ); // $ExpectError
9898
}

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* Planck distribution logarithm of cumulative distribution function (CDF).
22+
* Evaluate the logarithm of cumulative distribution function (CDF) for a Planck distribution with shape parameter `lambda`.
2323
*
2424
* @module @stdlib/stats/base/dists/planck/logcdf
2525
*

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/stats/base/dists/planck/logcdf",
33
"version": "0.0.0",
4-
"description": "Planck (discrete exponential) distribution logarithm of cumulative distribution function (CDF).",
4+
"description": "Evaluate the logarithm of cumulative distribution function (CDF) for a Planck (discrete exponential) distribution.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/test/fixtures/python/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def gen(x, lam, name):
7272

7373
def main():
7474
"""Generate fixture data."""
75-
# Large shape paramter:
75+
76+
# Large shape parameter:
7677
x = np.round(np.random.rand(1000) * 10.0)
7778
lam = (np.random.rand(1000) * 10.0) + 10.0
7879
gen(x, lam, "large_lambda.json")

lib/node_modules/@stdlib/stats/base/dists/planck/logcdf/test/test.factory.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tape( 'the function returns a function', function test( t ) {
4949
t.end();
5050
});
5151

52-
tape( 'if provided `NaN` for any parameter, the created function returns `NaN`', function test( t ) {
52+
tape( 'if provided `NaN` for any parameter, the returned function returns `NaN`', function test( t ) {
5353
var logcdf;
5454
var y;
5555

@@ -94,7 +94,7 @@ tape( 'if provided a valid `lambda`, the function returns a function which retur
9494
t.end();
9595
});
9696

97-
tape( 'if provided a shape parameter `lambda` which is nonpositive, the created function always returns `NaN`', function test( t ) {
97+
tape( 'if provided a shape parameter `lambda` which is nonpositive, the returned function always returns `NaN`', function test( t ) {
9898
var logcdf;
9999
var y;
100100

@@ -117,7 +117,7 @@ tape( 'if provided a shape parameter `lambda` which is nonpositive, the created
117117
t.end();
118118
});
119119

120-
tape( 'the created function evaluates the logcdf for `x` given small parameter `lambda`', function test( t ) {
120+
tape( 'the returned function evaluates the logcdf for `x` given small parameter `lambda`', function test( t ) {
121121
var expected;
122122
var logcdf;
123123
var lambda;
@@ -144,7 +144,7 @@ tape( 'the created function evaluates the logcdf for `x` given small parameter `
144144
t.end();
145145
});
146146

147-
tape( 'the created function evaluates the logcdf for `x` given small parameter `lambda`', function test( t ) {
147+
tape( 'the returned function evaluates the logcdf for `x` given small parameter `lambda`', function test( t ) {
148148
var expected;
149149
var logcdf;
150150
var lambda;

0 commit comments

Comments
 (0)