Skip to content

Commit 0ed96c6

Browse files
chore: minor clean up
1 parent 89fc374 commit 0ed96c6

File tree

14 files changed

+31
-49
lines changed

14 files changed

+31
-49
lines changed

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/README.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -172,36 +172,18 @@ for ( i = 0; i < 10; i++ ) {
172172

173173
#### stdlib_base_dists_beta_entropy( alpha, beta )
174174

175-
Evaluates the differential entropy for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a value `x`.
175+
Evaluates the differential entropy for a beta distribution with first shape parameter `alpha` and second shape parameter `beta`.
176176

177177

178178
```c
179179
double y = stdlib_base_dists_beta_entropy( 1.0, 1.0 );
180180
// returns ~0.0
181-
182-
y = stdlib_base_dists_beta_entropy( 4.0, 12.0 );
183-
// returns ~-0.869
184-
185-
y = stdlib_base_dists_beta_entropy( 8.0, 2.0 );
186-
// returns NaN
187-
188-
y = stdlib_base_dists_beta_entropy( 1.0, -0.1 );
189-
// returns NaN
190-
191-
y = stdlib_base_dists_beta_entropy( -0.1, 1.0 );
192-
// returns NaN
193-
194-
y = stdlib_base_dists_beta_entropy( 2.0, NaN );
195-
// returns NaN
196-
197-
y = stdlib_base_dists_beta_entropy( NaN, 2.0 );
198-
// returns NaN
199181
```
200182

201183
The function accepts the following arguments:
202184

203185
- **alpha**: `[in] double` first shape parameter
204-
- **beta**: `[in] double` second shape parameter
186+
- **beta**: `[in] double` second shape parameter
205187

206188
```c
207189
double stdlib_base_dists_beta_entropy( const double alpha, const double beta );
@@ -241,8 +223,8 @@ int main( void ) {
241223
for ( i = 0; i < 10; i++ ) {
242224
alpha = ( ( (double)rand() / (double)RAND_MAX )*10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
243225
beta = ( ( (double)rand() / (double)RAND_MAX )*10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
244-
y = stdlib_base_dists_beta_entropy( x, alpha, beta );
245-
printf( "α: %1f, β: %1f, h(X;α,β): %lf\n", x, alpha, beta, y );
226+
y = stdlib_base_dists_beta_entropy( alpha, beta );
227+
printf( "α: %1f, β: %1f, h(X;α,β): %lf\n", alpha, beta, y );
246228
}
247229
}
248230
```

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/benchmark/c/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2024 The Stdlib Authors.
4+
# Copyright (c) 2025 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -143,4 +143,4 @@ run: $(c_targets)
143143
clean:
144144
$(QUIET) -rm -f *.o *.out
145145

146-
.PHONY: clean
146+
.PHONY: clean

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -135,4 +135,4 @@ int main( void ) {
135135
printf( "ok %d benchmark finished\n", i+1 );
136136
}
137137
print_summary( REPEATS, REPEATS );
138-
}
138+
}

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2024 The Stdlib Authors.
3+
# Copyright (c) 2025 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -167,4 +167,4 @@
167167
], # end actions
168168
}, # end target copy_addon
169169
], # end targets
170-
}
170+
}

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/examples/c/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2024 The Stdlib Authors.
4+
# Copyright (c) 2025 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -143,4 +143,4 @@ run: $(c_targets)
143143
clean:
144144
$(QUIET) -rm -f *.o *.out
145145

146-
.PHONY: clean
146+
.PHONY: clean

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ int main( void ) {
3030
for ( i = 0; i < 10; i++ ) {
3131
alpha = ( ( (double)rand() / (double)RAND_MAX )*10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
3232
beta = ( ( (double)rand() / (double)RAND_MAX )*10.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
33-
y = stdlib_base_dists_beta_entropy( x, alpha, beta );
34-
printf( "α: %1f, β: %1f, h(X;α,β): %lf\n", x, alpha, beta, y );
33+
y = stdlib_base_dists_beta_entropy( alpha, beta );
34+
printf( "α: %1f, β: %1f, h(X;α,β): %lf\n", alpha, beta, y );
3535
}
3636
}

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/include.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @license Apache-2.0
22
#
3-
# Copyright (c) 2024 The Stdlib Authors.
3+
# Copyright (c) 2025 The Stdlib Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -50,4 +50,4 @@
5050
'<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libpath; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
5151
],
5252
}, # end variables
53-
}
53+
}

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/include/stats/base/dists/beta/entropy.h renamed to lib/node_modules/@stdlib/stats/base/dists/beta/entropy/include/stdlib/stats/base/dists/beta/entropy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -27,12 +27,12 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the differential entropy for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a value `x`.
30+
* Evaluates the differential entropy for a beta distribution with first shape parameter `alpha` and second shape parameter `beta`.
3131
*/
3232
double stdlib_base_dists_beta_entropy( const double alpha, const double beta );
3333

3434
#ifdef __cplusplus
3535
}
3636
#endif
3737

38-
#endif // !STDLIB_STATS_BASE_DISTS_BETA_ENTROPY_H
38+
#endif // !STDLIB_STATS_BASE_DISTS_BETA_ENTROPY_H

lib/node_modules/@stdlib/stats/base/dists/beta/entropy/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)