Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/node_modules/@stdlib/datasets/sotu/lib/party.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"d": "Democratic",
"dr": "Democratic-Republican",
"f": "Federalist",
"n": "none",
"nu": "National Union",
"r": "Republican",
"w": "Whig",
"wd": "Whig & Democratic"
"d": "Democratic",
"dr": "Democratic-Republican",
"f": "Federalist",
"n": "none",
"nu": "National Union",
"r": "Republican",
"w": "Whig",
"wd": "Whig & Democratic"
}
146 changes: 73 additions & 73 deletions lib/node_modules/@stdlib/math/strided/special/dmskabs2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
{
"options": {
"task": "build"
},
"fields": [
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
],
"confs": [
{
"task": "build",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap",
"@stdlib/strided/napi/dmskmap"
]
},
{
"task": "examples",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap"
]
},
{
"task": "benchmark",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap"
]
}
]
"options": {
"task": "build"
},
"fields": [
{
"field": "src",
"resolve": true,
"relative": true
},
{
"field": "include",
"resolve": true,
"relative": true
},
{
"field": "libraries",
"resolve": false,
"relative": false
},
{
"field": "libpath",
"resolve": true,
"relative": false
}
],
"confs": [
{
"task": "build",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap",
"@stdlib/strided/napi/dmskmap"
]
},
{
"task": "examples",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap"
]
},
{
"task": "benchmark",
"src": [
"./src/dmskabs2.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/special/abs2",
"@stdlib/strided/base/dmskmap"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ double stdlib_base_dists_geometric_quantile( const double r, const double p ) {
) {
return 0.0 / 0.0; // NaN
}
if( r == 1.0 ){
if ( r == 1.0 ) {
return STDLIB_CONSTANT_FLOAT64_PINF;
}
return stdlib_base_max( 0.0, stdlib_base_floor( stdlib_base_ln( 1.0 - r ) / stdlib_base_ln( 1.0 - p ) ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ static double benchmark( void ) {
int i;

for ( i = 0; i < 100; i++ ) {
p[ i ] = random_uniform( 0.0, 1.0);
min[ i ] = random_uniform( 0.0, 10.0 );
p[ i ] = random_uniform( 0.0, 1.0 );
min[ i ] = random_uniform( 0.0, 10.0 );
max[ i ] = random_uniform( min[ i ], min[ i ]+10.0 );
mode[ i ] = random_uniform( min[ i ], max[ i ] );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ extern "C" {
#endif

/**
* Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode).
* Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit), and `c` (mode).

*/
double stdlib_base_dists_triangular_quantile( const double p, const double a, const double b, const double c );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ var addon = require( './../src/addon.node' );
// MAIN //

/**
* Evaluates the quantile function for a triangular distribution with lower limit `a` and upper limit `b` and mode `c` at a probability `p`.
* Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit), and `c` (mode) at a probability `p`.

*
* @private
* @param {Probability} p - input value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#include "stdlib/math/base/special/sqrt.h"

/**
* Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit) and `c` (mode).
* Evaluates the quantile function for a triangular distribution with parameters `a` (lower limit), `b` (upper limit), and `c` (mode).

*
* @param p input probability
* @param a minimum support
Expand All @@ -48,7 +49,7 @@ double stdlib_base_dists_triangular_quantile( const double p, const double a, co
}
double pInflection = ( c - a ) / ( b - a );
if ( p < pInflection ) {
return a + stdlib_base_sqrt( ( b - a ) * ( c - a) * p );
return a + stdlib_base_sqrt( ( b - a ) * ( c - a ) * p );
}
if ( p > pInflection ) {
return b - stdlib_base_sqrt( ( b - a ) * ( b - c ) * ( 1.0 - p ) );
Expand Down
Loading