Skip to content

feat: add stats/incr/nanmax #5989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
edit
  • Loading branch information
jalajk3004 committed Mar 8, 2025
commit f3d4e018cf051f04eae9758b3fd7d617acf35ee9
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ double stdlib_base_dists_uniform_mgf( const double t, const double a, const doub
return 1.0;
}
// Case: t not equal to zero
return ( stdlib_base_exp( t * b ) - stdlib_base_exp( t * a ) ) / ( t * ( b - a ) );
return stdlib_base_exp( v ) * ( stdlib_base_sinh ( u ) / u );
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ tape( 'if provided `a >= b`, the function returns `NaN`', opts, function test( t
t.end();
});

tape( 'if provided valid parameters, the function returns `1` for `t = 0`', function test( t ) {
tape( 'if provided valid parameters, the function returns `1` for `t = 0`', opts, function test( t ) {
var y;

y = mgf( 0.0, 2.0, 4.0 );
Expand Down
Loading