Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
---
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
---
  • Loading branch information
yuvi-mittal committed Jan 28, 2025
1 parent a68fff2 commit add5e31
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ for ( i = 0; i < lambda.length; i++ ) {

#### stdlib_base_dists_planck_stdev( lambda )

Evaluates the standard deviation for an planck distribution.
Returns the standard deviation of a Planck distribution with shape parameter `λ`.

```c
double out = stdlib_base_dists_planck_stdev( 0.1 );
Expand Down Expand Up @@ -180,6 +180,7 @@ double stdlib_base_dists_planck_stdev( const double lambda );
<section class="examples">
### Examples
```c
#include "stdlib/stats/base/dists/planck/stdev.h"
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var uniform = require( '@stdlib/random/base/uniform' );
var Float64Array = require( '@stdlib/array/float64' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pkg = require( './../package.json' ).name;
Expand All @@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
len = 100;
lambda = new Float64Array( len );
for ( i = 0; i < len; i++ ) {
lambda[ i ] = ( randu() * 10.0 ) + 1.0;
lambda[ i ] = uniform(0.1, 11);
}

b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var uniform = require( '@stdlib/random/base/uniform' );
var Float64Array = require( '@stdlib/array/float64' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
Expand All @@ -39,7 +39,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts , function benchmark( b ) {
bench( pkg+'::native', opts, function benchmark( b ) {
var lambda;
var len;
var y;
Expand All @@ -48,7 +48,7 @@ bench( pkg+'::native', opts , function benchmark( b ) {
len = 100;
lambda = new Float64Array( len );
for ( i = 0; i < len; i++ ) {
lambda[ i ] = ( randu() * 10.0 ) + 1.0;
lambda[ i ] = uniform(0.1, 11);
}

b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" {
#endif

/**
* Evaluates the standard deviation (stdev) for an planck distribution with shape parameter lambda.
* Returns the standard deviation of a Planck distribution with shape parameter `λ`.
*/
double stdlib_base_dists_planck_stdev( const double lambda );

Expand Down
176 changes: 88 additions & 88 deletions lib/node_modules/@stdlib/stats/base/dists/planck/stdev/manifest.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,91 @@
{
"options": {
"options": {
"task": "build",
"wasm": false
},
"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",
"wasm": false
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/napi/unary",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
},
{
"task": "benchmark",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
},
"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",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/napi/unary",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
},
{
"task": "benchmark",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
},
{
"task": "examples",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
}
]
}
{
"task": "examples",
"wasm": false,
"src": [
"./src/main.c"
],
"include": [
"./include"
],
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/expm1",
"@stdlib/math/base/special/sqrt",
"@stdlib/math/base/special/exp",
"@stdlib/constants/float64/pi"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "stdlib/math/base/special/sqrt.h"

/**
* Evaluates the standard deviation of a Planck distribution given a shape parameter `lambda`.
* Returns the standard deviation of a Planck distribution with shape parameter `λ`.
*
* @param lambda shape parameter
* @return standard deviation
Expand Down

0 comments on commit add5e31

Please sign in to comment.