diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md
new file mode 100644
index 000000000000..aa8542e45007
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/README.md
@@ -0,0 +1,231 @@
+
+
+# Entropy
+
+> [Half-normal][half-normal-distribution] distribution [differential entropy][entropy].
+
+
+
+
+
+The [differential entropy][entropy] (in [nats][nats]) for a [half-normal][half-normal-distribution] random variable is
+
+
+
+```math
+h\left( X \right) = \frac{1}{2}+\ln(\sigma)+\ln\left(\sqrt{\frac{\pi}{2}}\right)+\frac{\gamma}{2}
+```
+
+
+
+where `σ > 0` is the scale parameter.
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var entropy = require( '@stdlib/stats/base/dists/halfnormal/entropy' );
+```
+
+#### entropy( sigma )
+
+Returns the [differential entropy][entropy] of a [half-normal][half-normal-distribution] distribution with scale `sigma`.
+
+```javascript
+var y = entropy( 1.0 );
+// returns ~1.014
+
+y = entropy( 5.0 );
+// returns ~2.624
+```
+
+If provided `sigma ≤ 0`, the function returns `NaN`.
+
+```javascript
+var y = entropy( -1.0 );
+// returns NaN
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var uniform = require( '@stdlib/random/array/uniform' );
+var logEachMap = require( '@stdlib/console/log-each-map' );
+var entropy = require( '@stdlib/stats/base/dists/halfnormal/entropy' );
+
+var opts = {
+ 'dtype': 'float64'
+};
+var sigma = uniform( 10, 0.1, 20.0, opts );
+
+logEachMap( 'σ: %0.4f, h(X;σ): %0.4f', sigma, entropy );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+```
+
+### stdlib_base_dists_halfnormal_entropy( sigma )
+
+Returns the differential entropy of a half-normal distribution.
+
+```c
+double out = stdlib_base_dists_halfnormal_entropy( 1.0 );
+// returns ~1.014
+```
+
+The function accepts the following arguments:
+
+- **sigma**: `[in] double` scale parameter.
+
+```c
+double stdlib_base_dists_halfnormal_entropy( const double sigma );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+#include
+#include
+
+static double random_uniform( const double min, const double max ) {
+ double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
+ return min + ( v*(max-min) );
+}
+
+int main( void ) {
+ double sigma;
+ double y;
+ int i;
+
+ for ( i = 0; i < 25; i++ ) {
+ sigma = random_uniform( 0.1, 20.0 );
+ y = stdlib_base_dists_halfnormal_entropy( sigma );
+ printf( "σ: %lf, h(σ): %lf\n", sigma, y );
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[half-normal-distribution]: https://en.wikipedia.org/wiki/Half-normal_distribution
+
+[entropy]: https://en.wikipedia.org/wiki/Entropy_%28information_theory%29
+
+[nats]: https://en.wikipedia.org/wiki/Nat_%28unit%29
+
+
+
+
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js
new file mode 100644
index 000000000000..24e6395814a1
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.js
@@ -0,0 +1,59 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var Float64Array = require( '@stdlib/array/float64' );
+var randu = require( '@stdlib/random/base/randu' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var pkg = require( './../package.json' ).name;
+var entropy = require( './../lib' );
+
+
+// MAIN //
+
+bench( pkg, function benchmark( b ) {
+ var sigma;
+ var len;
+ var y;
+ var i;
+
+ len = 100;
+ sigma = new Float64Array( len );
+ for ( i = 0; i < len; i++ ) {
+ sigma[ i ] = ( randu()*20.0 ) + EPS;
+ }
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ y = entropy( sigma[ i % len ] );
+ if ( isnan( y ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( y ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+});
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..629c6f0a50b6
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/benchmark.native.js
@@ -0,0 +1,69 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var Float64Array = require( '@stdlib/array/float64' );
+var randu = require( '@stdlib/random/base/randu' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var entropy = tryRequire( resolve( __dirname, './../lib/native.js' ) );
+var opts = {
+ 'skip': ( entropy instanceof Error )
+};
+
+
+// MAIN //
+
+bench( format( '%s::native', pkg ), opts, function benchmark(b) {
+ var sigma;
+ var len;
+ var y;
+ var i;
+
+ len = 100;
+ sigma = new Float64Array( len );
+ for ( i = 0; i < len; i++ ) {
+ sigma[ i ] = ( randu() * 20.0 ) + EPS;
+ }
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ y = entropy( sigma[ i % len ] );
+ if ( isnan( y ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( y ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+});
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile
new file mode 100644
index 000000000000..979768abbcec
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := benchmark.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c
new file mode 100644
index 000000000000..4fe8f1e2221a
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/benchmark/c/benchmark.c
@@ -0,0 +1,139 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+#include "stdlib/constants/float64/eps.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "halfnormal-entropy"
+#define ITERATIONS 1000000
+#define REPEATS 3
+
+/**
+* Prints the TAP version.
+*/
+static void print_version( void ) {
+ printf( "TAP version 13\n" );
+}
+
+/**
+* Prints the TAP summary.
+*
+* @param total total number of tests
+* @param passing total number of passing tests
+*/
+static void print_summary( int total, int passing ) {
+ printf( "#\n" );
+ printf( "1..%d\n", total ); // TAP plan
+ printf( "# total %d\n", total );
+ printf( "# pass %d\n", passing );
+ printf( "#\n" );
+ printf( "# ok\n" );
+}
+
+/**
+* Prints benchmarks results.
+*
+* @param elapsed elapsed time in seconds
+*/
+static void print_results( double elapsed ) {
+ double rate = (double)ITERATIONS / elapsed;
+ printf( " ---\n" );
+ printf( " iterations: %d\n", ITERATIONS );
+ printf( " elapsed: %0.9f\n", elapsed );
+ printf( " rate: %0.9f\n", rate );
+ printf( " ...\n" );
+}
+
+/**
+* Returns a clock time.
+*
+* @return clock time
+*/
+static double tic( void ) {
+ struct timeval now;
+ gettimeofday( &now, NULL );
+ return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
+}
+
+/**
+* Generates a random number on the interval [min,max).
+*
+* @param min minimum value (inclusive)
+* @param max maximum value (exclusive)
+* @return random number
+*/
+static double random_uniform( const double min, const double max ) {
+ double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
+ return min + ( v*(max-min) );
+}
+
+/**
+* Runs a benchmark.
+*
+* @return elapsed time in seconds
+*/
+static double benchmark( void ) {
+ double elapsed;
+ double sigma[ 100 ];
+ double y;
+ double t;
+ int i;
+
+ for ( i = 0; i < 100; i++ ) {
+ sigma[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, STDLIB_CONSTANT_FLOAT64_EPS + 20.0 );
+ }
+
+ t = tic();
+ for ( i = 0; i < ITERATIONS; i++ ) {
+ y = stdlib_base_dists_halfnormal_entropy( sigma[ i % 100 ] );
+ if ( y != y ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( y != y ) {
+ printf( "should not return NaN\n" );
+ }
+ return elapsed;
+}
+
+/**
+* Main execution sequence.
+*/
+int main( void ) {
+ double elapsed;
+ int i;
+
+ // Use the current time to seed the random number generator:
+ srand( time( NULL ) );
+
+ print_version();
+ for ( i = 0; i < REPEATS; i++ ) {
+ printf( "# c::%s\n", NAME );
+ elapsed = benchmark();
+ print_results( elapsed );
+ printf( "ok %d benchmark finished\n", i+1 );
+ }
+ print_summary( REPEATS, REPEATS );
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp
new file mode 100644
index 000000000000..0d6508a12e99
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/binding.gyp
@@ -0,0 +1,170 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A `.gyp` file for building a Node.js native add-on.
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # List of files to include in this file:
+ 'includes': [
+ './include.gypi',
+ ],
+
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Target name should match the add-on export name:
+ 'addon_target_name%': 'addon',
+
+ # Set variables based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+ {
+ # Define the object file suffix:
+ 'obj': 'obj',
+ },
+ {
+ # Define the object file suffix:
+ 'obj': 'o',
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end variables
+
+ # Define compile targets:
+ 'targets': [
+
+ # Target to generate an add-on:
+ {
+ # The target name should match the add-on export name:
+ 'target_name': '<(addon_target_name)',
+
+ # Define dependencies:
+ 'dependencies': [],
+
+ # Define directories which contain relevant include headers:
+ 'include_dirs': [
+ # Local include directory:
+ '<@(include_dirs)',
+ ],
+
+ # List of source files:
+ 'sources': [
+ '<@(src_files)',
+ ],
+
+ # Settings which should be applied when a target's object files are used as linker input:
+ 'link_settings': {
+ # Define libraries:
+ 'libraries': [
+ '<@(libraries)',
+ ],
+
+ # Define library directories:
+ 'library_dirs': [
+ '<@(library_dirs)',
+ ],
+ },
+
+ # C/C++ compiler flags:
+ 'cflags': [
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Aggressive optimization:
+ '-O3',
+ ],
+
+ # C specific compiler flags:
+ 'cflags_c': [
+ # Specify the C standard to which a program is expected to conform:
+ '-std=c99',
+ ],
+
+ # C++ specific compiler flags:
+ 'cflags_cpp': [
+ # Specify the C++ standard to which a program is expected to conform:
+ '-std=c++11',
+ ],
+
+ # Linker flags:
+ 'ldflags': [],
+
+ # Apply conditions based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="mac"',
+ {
+ # Linker flags:
+ 'ldflags': [
+ '-undefined dynamic_lookup',
+ '-Wl,-no-pie',
+ '-Wl,-search_paths_first',
+ ],
+ },
+ ], # end condition (OS=="mac")
+ [
+ 'OS!="win"',
+ {
+ # C/C++ flags:
+ 'cflags': [
+ # Generate platform-independent code:
+ '-fPIC',
+ ],
+ },
+ ], # end condition (OS!="win")
+ ], # end conditions
+ }, # end target <(addon_target_name)
+
+ # Target to copy a generated add-on to a standard location:
+ {
+ 'target_name': 'copy_addon',
+
+ # Declare that the output of this target is not linked:
+ 'type': 'none',
+
+ # Define dependencies:
+ 'dependencies': [
+ # Require that the add-on be generated before building this target:
+ '<(addon_target_name)',
+ ],
+
+ # Define a list of actions:
+ 'actions': [
+ {
+ 'action_name': 'copy_addon',
+ 'message': 'Copying addon...',
+
+ # Explicitly list the inputs in the command-line invocation below:
+ 'inputs': [],
+
+ # Declare the expected outputs:
+ 'outputs': [
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+
+ # Define the command-line invocation:
+ 'action': [
+ 'cp',
+ '<(PRODUCT_DIR)/<(addon_target_name).node',
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+ },
+ ], # end actions
+ }, # end target copy_addon
+ ], # end targets
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt
new file mode 100644
index 000000000000..d2a09d6de8df
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/repl.txt
@@ -0,0 +1,27 @@
+
+{{alias}}( σ )
+ Returns the differential entropy of a half-normal distribution.
+
+ If provided `NaN` as any argument, the function returns `NaN`.
+
+ If provided `σ ≤ 0`, the function returns `NaN`.
+
+ Parameters
+ ----------
+ σ: number
+ Scale parameter.
+
+ Returns
+ -------
+ out: number
+ Entropy.
+
+ Examples
+ --------
+ > var v = {{alias}}( 1.0 )
+ ~1.014
+ > v = {{alias}}( 5.0 )
+ ~2.624
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts
new file mode 100644
index 000000000000..bdebd76e2365
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/index.d.ts
@@ -0,0 +1,52 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+/**
+* Returns the differential entropy of a half-normal distribution.
+*
+* ## Notes
+*
+* - If provided `σ ≤ 0`, the function returns `NaN`.
+*
+* @param sigma - scale parameter
+* @returns entropy
+*
+* @example
+* var v = entropy( 1.0 );
+* // returns ~1.014
+*
+* @example
+* var v = entropy( 5.0 );
+* // returns ~2.624
+*
+* @example
+* var v = entropy( -0.2 );
+* // returns NaN
+*
+* @example
+* var v = entropy( NaN );
+* // returns NaN
+*/
+declare function entropy( sigma: number ): number;
+
+
+// EXPORTS //
+
+export = entropy;
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts
new file mode 100644
index 000000000000..7ae527f801a9
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/docs/types/test.ts
@@ -0,0 +1,44 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import entropy = require( './index' );
+
+
+// TESTS //
+
+// The function returns a number...
+{
+ entropy( 0.3 ); // $ExpectType number
+}
+
+// The compiler throws an error if the function is provided a value other than a number...
+{
+ entropy( true ); // $ExpectError
+ entropy( false ); // $ExpectError
+ entropy( null ); // $ExpectError
+ entropy( undefined ); // $ExpectError
+ entropy( '5' ); // $ExpectError
+ entropy( [] ); // $ExpectError
+ entropy( {} ); // $ExpectError
+ entropy( ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided insufficient arguments...
+{
+ entropy(); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile
new file mode 100644
index 000000000000..c8f8e9a1517b
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := example.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled examples.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c
new file mode 100644
index 000000000000..bf92430f5799
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/c/example.c
@@ -0,0 +1,40 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+#include
+#include
+
+static double random_uniform( const double min, const double max ) {
+ double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
+ return min + ( v*(max-min) );
+}
+
+int main( void ) {
+ double sigma;
+ double y;
+ int i;
+
+ for ( i = 0; i < 25; i++ ) {
+ sigma = random_uniform( 0.0, 20.0 );
+ y = stdlib_base_dists_halfnormal_entropy( sigma );
+ printf( "σ: %lf, h(σ): %lf\n", sigma, y );
+ }
+
+ return 0;
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js
new file mode 100644
index 000000000000..50e0320fa7ed
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/examples/index.js
@@ -0,0 +1,30 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var uniform = require( '@stdlib/random/array/uniform' );
+var logEachMap = require( '@stdlib/console/log-each-map' );
+var entropy = require( './../lib' );
+
+var opts = {
+ 'dtype': 'float64'
+};
+var sigma = uniform( 10, 0.1, 20.0, opts );
+
+logEachMap( 'σ: %0.4f, h(X;σ): %0.4f', sigma, entropy );
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi
new file mode 100644
index 000000000000..bee8d41a2caf
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/include.gypi
@@ -0,0 +1,53 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A GYP include file for building a Node.js native add-on.
+#
+# Main documentation:
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Source directory:
+ 'src_dir': './src',
+
+ # Include directories:
+ 'include_dirs': [
+ '=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "statistics",
+ "stats",
+ "distribution",
+ "dist",
+ "entropy",
+ "information",
+ "shannon",
+ "nats",
+ "halfnormal",
+ "half-normal",
+ "univariate",
+ "continuous"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile
new file mode 100644
index 000000000000..2caf905cedbe
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/Makefile
@@ -0,0 +1,70 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+
+# RULES #
+
+#/
+# Removes generated files for building an add-on.
+#
+# @example
+# make clean-addon
+#/
+clean-addon:
+ $(QUIET) -rm -f *.o *.node
+
+.PHONY: clean-addon
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean: clean-addon
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c
new file mode 100644
index 000000000000..9d73b137a9f8
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/addon.c
@@ -0,0 +1,22 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+#include "stdlib/math/base/napi/unary.h"
+
+STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_halfnormal_entropy )
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c
new file mode 100644
index 000000000000..ae68f371478c
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/src/main.c
@@ -0,0 +1,43 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/stats/base/dists/halfnormal/entropy.h"
+#include "stdlib/math/base/assert/is_nan.h"
+#include "stdlib/math/base/special/ln.h"
+#include "stdlib/constants/float64/eulergamma.h"
+#include "stdlib/constants/float64/sqrt_half_pi.h"
+
+/**
+* Returns the differential entropy of a half-normal distribution.
+*
+* @param sigma scale parameter
+* @return entropy
+*
+* @example
+* double y = stdlib_base_dists_halfnormal_entropy( 1.0 );
+* // returns ~1.014
+*/
+double stdlib_base_dists_halfnormal_entropy( const double sigma ) {
+ if (
+ stdlib_base_is_nan( sigma ) ||
+ sigma <= 0.0
+ ) {
+ return 0.0/0.0; // NaN
+ }
+ return 0.5 + stdlib_base_ln( sigma ) + stdlib_base_ln( STDLIB_CONSTANT_FLOAT64_SQRT_HALF_PI ) + ( 0.5 * STDLIB_CONSTANT_FLOAT64_EULERGAMMA );
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE
new file mode 100644
index 000000000000..98be20b58ed3
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/REQUIRE
@@ -0,0 +1,3 @@
+Distributions 0.23.8
+julia 1.5
+JSON 0.21
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json
new file mode 100644
index 000000000000..8fc213512749
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/data.json
@@ -0,0 +1,106 @@
+{
+ "sigma": [
+ 1.0000000000000000,
+ 2.0000000000000000,
+ 0.5000000000000000,
+ 5.0000000000000000,
+ 10.0000000000000000,
+ 0.1000000000000000,
+ 20.0000000000000000,
+ 3.0000000000000000,
+ 4.0000000000000000,
+ 6.0000000000000000,
+ 7.0000000000000000,
+ 8.0000000000000000,
+ 9.0000000000000000,
+ 15.0000000000000000,
+ 25.0000000000000000,
+ 0.2500000000000000,
+ 0.7500000000000000,
+ 1.5000000000000000,
+ 2.5000000000000000,
+ 3.5000000000000000,
+ 4.5000000000000000,
+ 5.5000000000000000,
+ 6.5000000000000000,
+ 7.5000000000000000,
+ 8.5000000000000000,
+ 9.5000000000000000,
+ 11.0000000000000000,
+ 12.0000000000000000,
+ 13.0000000000000000,
+ 14.0000000000000000,
+ 16.0000000000000000,
+ 18.0000000000000000,
+ 22.0000000000000000,
+ 30.0000000000000000,
+ 50.0000000000000000,
+ 0.2000000000000000,
+ 0.3000000000000000,
+ 0.4000000000000000,
+ 0.6000000000000000,
+ 0.8000000000000000,
+ 1.2000000000000000,
+ 1.8000000000000000,
+ 2.2000000000000000,
+ 2.8000000000000000,
+ 3.2000000000000000,
+ 3.8000000000000000,
+ 4.2000000000000000,
+ 4.8000000000000000,
+ 5.2000000000000000,
+ 6.2000000000000000
+ ],
+ "expected": [
+ 1.0143991850954936,
+ 1.7075463656554390,
+ 0.3212520045355485,
+ 2.6238370975295940,
+ 3.3169842780895396,
+ -1.2881859078985518,
+ 4.0101314586494850,
+ 2.1130114737636037,
+ 2.4006935462153844,
+ 2.8061586543235486,
+ 2.9603093341508075,
+ 3.0938407267753294,
+ 3.2116237624317130,
+ 3.7224493861977037,
+ 4.2332750099636950,
+ -0.3718951760243967,
+ 0.7267171126437131,
+ 1.4198642932036583,
+ 1.9306899169696490,
+ 2.2671621535908620,
+ 2.5184765818717680,
+ 2.7191472773339194,
+ 2.8862013619970850,
+ 3.0293022056377583,
+ 3.1544653485917650,
+ 3.2656909837019890,
+ 3.4122944578938648,
+ 3.4993058348834940,
+ 3.5793485425570304,
+ 3.6534565147107520,
+ 3.7869879073352750,
+ 3.9047709429916586,
+ 4.1054416384538110,
+ 4.4155965667576496,
+ 4.9264221905236410,
+ -0.5950387273386064,
+ -0.1895736192304422,
+ 0.0981084532213389,
+ 0.5035735613295031,
+ 0.7912556337812842,
+ 1.1967207418894485,
+ 1.6021858499976130,
+ 1.8028565454597640,
+ 2.0440186022766520,
+ 2.1775499949011747,
+ 2.3494002518278340,
+ 2.4494837103848166,
+ 2.5830151030093390,
+ 2.6630578106828753,
+ 2.8389484771465400
+ ]
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl
new file mode 100644
index 000000000000..2320a6262272
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/julia/runner.jl
@@ -0,0 +1,72 @@
+#!/usr/bin/env julia
+#
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import JSON
+
+# Constants
+GAMMA = 0.5772156649015329
+SQRT_HALF_PI = sqrt(pi / 2)
+
+"""
+ gen( sigma, name )
+
+Generate fixture data and write to file.
+
+# Arguments
+
+* `sigma`: scale parameter
+* `name::AbstractString`: output filename
+
+# Examples
+
+```julia
+julia> sigma = rand( 1000 );
+julia> gen( sigma, "data.json" );
+```
+"""
+# Get the filename:
+file = @__FILE__
+
+# Extract the directory in which this file resides:
+dir = dirname(file)
+
+function gen( sigma, name )
+ z = Array{Float64}( undef, length(sigma) );
+ for i in eachindex(sigma)
+ z[i] = 0.5 + log(sigma[i]) + log(SQRT_HALF_PI) + 0.5 * GAMMA
+ end
+
+ # Store data to be written to file as a collection:
+ data = Dict([
+ ("sigma", sigma),
+ ("expected", z)
+ ]);
+
+ # Based on the script directory, create an output filepath:
+ filepath = joinpath(dir, name)
+
+ # Write the data to the output filepath as JSON:
+ open(filepath, "w") do outfile
+ write(outfile, JSON.json(data))
+ write(outfile, "\n")
+ end
+end
+
+# Generate fixtures:
+sigma = ( rand(50) .* 20.0 ) .+ 2.0
+gen(sigma, "data.json")
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json
new file mode 100644
index 000000000000..73129263dc75
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/data.json
@@ -0,0 +1 @@
+{"sigma": [7.3120967009357, 3.659653200812621, 10.58701717900173, 9.32792554650073, 12.183810862843236, 2.5543579596362735, 8.165999622542362, 15.106230333392332, 5.792446447273344, 19.892636759646667, 9.978625573982212, 3.942886702358013, 15.63436050981639, 16.73588926025132, 5.473366414910566, 13.672304037846299, 9.353909038902724, 7.653965528864299, 3.0976870094279056, 13.904743296764625, 17.547926720119882, 16.506769775980604, 21.255181993474885, 5.415206421087507, 3.481620498651368, 8.383340820258915, 16.26015210738808, 8.311346743413441, 18.800084480980754, 4.144121393537198, 2.654097716029216, 3.983394418597051, 5.612088913756237, 11.059879925712762, 4.278639449006253, 19.244658654738323, 4.0758202148512535, 8.767298754325932, 17.471965852234845, 14.862073428571035, 14.378918034285116, 9.042158579407207, 2.9967427178876487, 18.67126852017133, 17.42226017303423, 6.577547115063776, 13.87227617293182, 4.032837330140502, 13.837087026513974, 13.12693147378764, 14.11018633395323, 12.097230126037353, 8.885980668856329, 9.49804401535346, 20.221162861675875, 16.752854043089147, 9.39889225899203, 2.026201567430151, 9.287375510570527, 20.902159642360918, 18.698596849251032, 21.719399626451207, 7.456326948878083, 21.221113359174417, 15.687099842896703, 3.5181174442427525, 8.09578930725095, 5.482425138858362, 14.045415218462432, 12.462233825061283, 15.441567642079665, 2.6644983247211167, 14.26622370624037, 15.751060947243536, 15.819020855043277, 12.682076047405868, 12.573365238364278, 3.043233727535733, 2.092012656968792, 4.612268203958317, 2.0848757032801783, 15.233121806035896, 4.1165456519582415, 4.020559868868126, 12.70169794636807, 4.347770110932692, 13.007321369629157, 20.046959934123503, 13.731147964813102, 12.812493170350947, 5.14674822466448, 18.513817919758147, 20.302320227774857, 5.786531368121029, 12.01694064866654, 8.935563397542431, 3.418815840197205, 4.679168804755047, 9.721472046217324, 16.52238853966255, 14.135535137775992, 8.364922817009685, 16.20350144804876, 6.964285988317279, 13.01818232317006, 5.756028098749125, 13.184231021135284, 21.03439421508933, 15.13633712397715, 16.94823682244796, 19.768707737324583, 5.376588619282577, 12.202064588173647, 5.475402623054425, 6.064358145916169, 10.121749938565026, 21.455284068259495, 7.51775019168894, 11.539309401865006, 4.479349486555121, 15.594985482821384, 12.705991808695291, 6.506936896931664, 8.053825515876941, 3.386333441630847, 6.7663417473386716, 8.22977256542143, 10.05154782496638, 12.181753691894615, 12.012649253550181, 7.219368960928444, 16.402175651453476, 12.388809364078105, 4.736414824704716, 7.781323873560414, 10.69393722955456, 16.259330160618518, 3.5355324019949013, 5.613116268844793, 19.036930340612923, 7.7268136718362666, 3.329350010357677, 3.4737421867783884, 17.37064324926144, 7.454225945803213, 13.943835760673977, 10.845667656271207, 4.002213586562831, 9.936032782985576, 3.3825458376099764, 10.451560378058332, 4.642635636816502, 4.937861364716792, 2.266239658143892, 16.141881871260438, 10.833758671999675, 19.316795243835756, 20.09451936985337, 20.948320421118577, 5.202894923836954, 16.62890322134843, 20.465221039930253, 9.412363090623222, 9.510630745123617, 2.853997157624007, 13.880027100774202, 7.312845931614907, 11.528446530595112, 18.409043318915046, 12.8504065578073, 10.563211500884293, 5.639626395421822, 19.555298148107738, 14.125360968124559, 5.382935970405194, 21.353394921274322, 3.4459636916476892, 6.18074139980309, 17.544326973245077, 11.776867759135065, 8.202296023159317, 11.352976505217727, 12.103900652734342, 15.088443486888128, 5.886700165072316, 4.9580506501364585, 11.694358526359363, 10.067806038951232, 14.273276662940006, 16.60587589626313, 8.946783602115353, 8.510577347322858, 2.015368724198128, 10.552738341321295, 11.431011407391349, 10.563077676814103, 6.6421804078305895, 4.531123620235915, 18.900401837264223, 16.446538241844074, 8.66493333653209, 4.526307861075319, 3.440027945109552, 13.002692521665429, 5.9035258670370565, 21.22646121477127, 18.808557328329982, 3.7839665167179364, 6.823173776434173, 3.172741681052878, 13.778874987535948, 16.32184305017918, 3.4206883326893527, 6.751437646770049, 16.25880753368741, 10.183335237804476, 20.821199970950953, 7.5249268431608956, 2.1486534847018595, 3.900216980685212, 2.7844503906727196, 7.942226511716962, 14.467949038793316, 8.410946797281545, 12.9736837105417, 3.663097475256523, 16.127991772359017, 9.331372287857587, 7.662332269515069, 6.55250806565904, 13.145176727528588, 17.717097397230056, 9.730318311143805, 2.1534605907121067, 9.403267884040181, 10.913596441058809, 11.252168442248172, 3.516911423690024, 15.713489654342617, 4.3317340108431805, 12.979552974214943, 17.516661009035264, 18.882934988278404, 6.66606909172395, 10.574470168445718, 7.287197195551605, 9.160379166755, 18.24186778475052, 3.342014277035648, 2.5159203146161806, 19.768862429495936, 17.60212347655044, 13.577254466429714, 7.988300995163476, 5.504262339680613, 16.834201271494816, 16.301169737926713, 16.877282695001448, 9.814218182966602, 15.751076599566638, 6.1273926261210026, 7.280417286985766, 12.271069129753545, 10.656640904005036, 11.123445080289038, 16.281883771206008, 18.614609885521304, 21.964462859619594, 6.683687228989131, 9.094766191194468, 3.5301365318509585, 5.659005053195019, 9.724443974416426, 11.89602533842184, 4.210091371986101, 16.970886698013494, 19.07826166196451, 17.183845699429465, 9.1131325199835, 7.129477081375599, 3.7148354572834323, 7.056216888665115, 13.747475202542253, 19.745325512988785, 7.365993741879049, 21.570909757079495, 5.569813760426161, 2.995973670139252, 20.565896133853165, 13.060865231551238, 20.180715496983105, 18.566861245514826, 3.542376917442474, 11.343162334238906, 7.479730830914904, 3.072262316523125, 12.124899317193785, 18.47579922499627, 5.346512141315634, 19.748419603680063, 7.746758147726155, 4.9469612086328345, 16.80484386221918, 18.52832766339508, 19.54341865237862, 13.800697048029214, 19.747162776383487, 18.957992875767843, 16.869842817566028, 15.975627733990718, 17.522411366234337, 14.535619034465688, 18.2438773788453, 8.781364977680614, 3.3314654178498064, 3.947939019057243, 11.40743232776012, 14.836609011752461, 18.965876856839216, 12.293071216042392, 16.32621598842651, 11.321451510097564, 19.727735511529264, 20.31636178005705, 21.681227285967402, 14.91278307781839, 6.13899765864069, 15.75404629854685, 4.910131623313211, 5.0900464156562935, 16.106964131950257, 4.994101502606279, 18.324922502953406, 10.054333636710439, 15.282861481995575, 16.225796664216226, 3.165039070876699, 20.563036738403284, 18.97503049112422, 18.708004013552422, 3.6024054375748364, 3.600908873178517, 6.553071425378807, 6.63988362471881, 14.501849814578359, 12.460924374647313, 17.962489945040605, 16.037064279666552, 14.822917048670945, 9.173475046356723, 8.31415584225967, 9.87196053051326, 15.340014101848487, 15.09338238437542, 17.81637629241228, 12.134511696175556, 19.600607633358337, 20.237290850089238, 2.658210016924703, 8.2058329224176, 5.167927862067694, 19.06571011778635, 13.64569848499891, 20.19645035591683, 15.808781115999029, 19.51112547537697, 20.104629251416164, 14.18756881681452, 18.30221831583144, 21.929127466055554, 15.418308042924929, 6.24492135406167, 20.531520796157498, 3.1481055780557736, 7.969050916738581, 10.609448529611631, 4.776054209759451, 12.641129168765065, 10.749710029193427, 3.178394191944938, 4.456028234264016, 6.685067993674115, 21.461654619219775, 6.427417049824962, 12.491933689418541, 14.25041982637233, 14.821255538935372, 17.868749863924982, 14.847711690059331, 17.285765477484716, 8.653755829648178, 19.511784590572912, 18.1848798345298, 15.650255273594102, 17.371558556292477, 13.86345641021856, 20.001534730624616, 15.887687192840444, 21.1273896846789, 7.72657742691423, 3.320516759750179, 8.470919281545246, 16.27898430671344, 14.872163401189283, 19.608342540445975, 15.272129446083959, 4.681186628611705, 4.695668158797709, 6.3721722169778365, 8.989191618592216, 21.255972177865104, 18.200352977814685, 4.81117665474482, 7.014347649188499, 17.713090968234336, 2.2269071124244992, 11.430261470615921, 10.114621664771619, 4.975327599049534, 9.687890829792192, 15.558254990200387, 5.697288673683747, 19.957266361465955, 7.776058856283437, 11.908076238824492, 8.985261830035219, 19.643152560316334, 17.82867566981589, 18.14598028811822, 14.406670095486518, 14.926706167888344, 2.0173132510379204, 7.5236819399415715, 20.044700935911123, 12.865302156037956, 5.464219561224833, 9.611294703633417, 16.270415803249627, 15.81617788639922, 4.85907759798282, 11.332997944515869, 3.506743380056028, 12.129250542706547, 12.60311769499954, 4.192871046481697, 2.099206652921553, 8.4026637432505, 2.510952317470572, 19.26841195074349, 7.311130212631108, 20.34266532594414, 10.911167837085202, 13.149473656820765, 7.794300396322596, 16.120905792826946, 5.954239628930645, 16.022860326728534, 15.655266271052792, 11.911601937246603, 16.51257420459065, 11.16730745230601, 8.334582172133924, 8.385982094727618, 16.61972297593303, 11.14777618398643, 6.575564916021724, 6.1224161618101585, 11.578090551921603, 4.326389275679716, 14.255297182164577, 12.049305710353064, 20.326596625205465, 13.55940943628882, 20.79877594654879, 2.658122942338095, 4.044317477081535, 5.624962777918728, 20.411501534159086, 17.06777779963188, 13.711425816506068, 4.258792037952064, 11.61582282125782, 8.22981873054444, 12.483859972469258, 4.270332305770257, 17.94516885320091, 8.09264649645602, 11.578822354243648, 6.905880729897369, 5.330606027918894, 6.196199615700131, 21.658863328970696, 2.7938253438663434, 3.4012756337202648, 9.226926523584837, 8.365668849113638, 2.2843649850271657, 6.086165007215634, 10.993608351822452, 18.143005768520716, 20.04074679097978, 2.815255849763934, 16.80542312630299, 8.342403482840384, 14.565290377844867, 12.23536265708624, 8.7011228102748, 16.33253293338467, 13.256758164692773, 11.46394816544135, 21.66032315093322, 10.993001470670288, 10.205415392742381, 11.87244791624268, 2.391373415229912, 7.798125588684733, 18.119573657498073, 11.341385760714896, 18.748002170181728, 15.89153536611748, 17.287928383814837, 11.894156806197444, 2.062398481055448, 12.791973325497255, 20.95869470984486, 15.165031523206988, 12.510881303416724, 11.771734084770262, 4.425649056076164, 20.016099211197673, 4.74441007271472, 11.278122815639131, 6.551271143749702, 16.889592383633936, 3.9708897634956912, 6.625523840004275, 2.484998879687606, 7.3775182999722215, 3.4676707315894166, 2.9794870262335675, 13.414923996377116, 7.60982889850883, 16.10590805919139, 13.769636165863467, 18.355592914746445, 13.125157488657575, 3.903733998558048, 3.759056184333927, 18.493909636778135, 21.81744016883354, 9.655822561465575, 6.406662605516802, 19.018547422477916, 6.08556530236281, 20.048882327314605, 19.51316227214747, 17.20596786533774, 17.49473096407229, 18.170187641712065, 17.98127842502723, 4.61461292918066, 8.465645795450536, 12.372791747779107, 12.694546589346231, 7.390964492947889, 16.11265242052776, 10.789267939908484, 18.165439551788875, 11.65249423778765, 12.026034567890418, 6.549107608447409, 14.26075166442762, 13.748897240501787, 15.361839679000148, 9.19813569009305, 8.044148601920078, 13.053070368129331, 7.029162837814189, 19.724746785447863, 10.313487942423844, 2.1528448224623524, 6.150414782751102, 10.20676807155007, 18.743663960072432, 7.174420215392024, 3.2609243339354426, 3.7458408165263517, 11.122095998506063, 9.151344784408568, 20.63254793911744, 18.175611585297887, 15.192053140462825, 5.400944473948504, 19.897992838085873, 14.233550401225084, 5.223293260089976, 13.306042433129189, 16.83213357935279, 9.393087258822607, 4.2212401556644235, 19.972249702594574, 5.417140906830632, 5.26448415037264, 21.406976564185733, 10.556881338188996, 10.95858173577859, 2.2733639856139547, 9.006611983866138, 12.508100627496361, 11.057427419839474, 21.984093460313982, 20.945590999178062, 14.771813803027781, 9.053193111397885, 12.78781801496558, 6.176826689373909, 19.71108637368566, 11.17869109939753, 9.085531858463973, 5.486742694473717, 12.298714526690468, 21.894928437048456, 12.721222920252542, 10.591883689040994, 14.804561985290274, 17.640950048973004, 18.915966397402308, 18.387917252228938, 13.030168218919005, 9.512737014999383, 21.905573590916916, 5.419796042446228, 21.358652519558607, 13.909903062847667, 5.701085264788353, 2.2582346860523943, 6.798894023446573, 6.927731668870328, 11.812259952914879, 5.9217933956526245, 15.544270033948836, 5.74060060959555, 15.997404221795648, 18.692712588861454, 8.552971673667953, 9.971806770389199, 20.350653055614124, 9.850248931301309, 6.4017483703198295, 9.755605149067664, 18.115512289640282, 17.26803492626617, 7.2210813498123905, 19.394821779300823, 7.179932863089913, 19.969192469846227, 3.563513557072338, 8.45186261090444, 10.902703770585203, 4.896056489177424, 9.527344438305295, 15.437063412168936, 15.805923380253805, 14.900502219508457, 12.885161667105773, 19.537012541010874, 20.766814388679716, 21.30491688892984, 19.151440927200778, 8.014762585035601, 8.639691980629458, 14.911023310441117, 20.735755244807457, 6.711085437834064, 21.49725468866358, 5.795765137669223, 15.253191784069944, 9.313171854076062, 6.540499720218576, 10.73850015395095, 2.144497800506258, 15.101401218289245, 7.6307027753107475, 8.15478662683983, 10.974615454191232, 3.448540691028779, 21.634833028294018, 18.769066197000736, 18.191986625444805, 2.2501559717743262, 5.717604685558373, 10.913649491536697, 9.923151886416269, 18.298339257408237, 20.88698375607373, 14.887281566101901, 2.9386730986331693, 8.885070709649083, 6.31989063622572, 2.764799291556739, 13.213229380011642, 4.043830227630097, 19.136383187399208, 14.139429565606063, 11.500868385898002, 12.22003602873359, 10.027445125895454, 3.773556456542742, 17.37590717648612, 16.143829947109154, 10.261398338079582, 16.13929932688348, 19.245092426875217, 3.0559625467282174, 7.577666398576997, 3.553658429321285, 7.895006939398007, 8.362350541550787, 13.401884712559223, 5.87593083517594, 6.88554243418021, 16.481342143684202, 11.25887465397681, 19.058674418980402, 11.565775193882978, 21.966097147473217, 18.239881175525703, 14.1167471856398, 16.80412843670861, 11.18587017214188, 20.87614187295067, 11.124462821008416, 12.165079061895524, 6.92402265799104, 15.288811662750206, 16.21431793159556, 19.018065301737366, 15.800177291713933, 15.629970084222458, 11.692870644404001, 17.96613178175176, 3.898090878550336, 15.492563851185839, 3.914512835639852, 20.04541801823717, 17.610068332978578, 15.851934148138813, 8.507230499046731, 13.58457957101703, 12.884141972016373, 13.839200856268297, 12.119222103827784, 9.866529731715843, 20.50224667004645, 20.86564146173225, 19.308393740232724, 12.568329116055907, 9.581396645817426, 8.43204547596458, 4.9621843146951665, 3.6625157235574073, 5.894235668508101, 10.022323789716719, 16.795972220764686, 19.714444802499177, 20.221336957216533, 11.155629177491733, 17.981033682265064, 3.1012258146490272, 11.34168620927694, 3.2286001468592223, 7.670325935931619, 17.106343422330006, 11.531525372386952, 5.353141335284365, 17.110799317348583, 18.935349276943242, 14.716046853999217, 14.086156125389964, 21.2324975669793, 15.662834432177544, 7.232621992820512, 6.3793530894913975, 5.093944847417458, 15.54998547680962, 11.597678078508803, 17.48334195301024, 19.12943013647561, 14.79771880987374, 6.966933902341692, 17.27620901978558, 10.988266919482676, 14.618002206172822, 14.238283251440853, 3.8091011806462554, 16.677491735490694, 6.342238726856909, 5.623354580093854, 11.071552672040417, 8.148814127808237, 21.76403873564128, 20.93198576992947, 18.917330383960454, 3.661583418632564, 21.25890215621317, 12.955882437351494, 21.123703188221842, 5.69674177225932, 13.404367088568886, 20.79388677531411, 18.17755652355303, 14.161922991944197, 13.705399962111894, 6.83547069936944, 8.090740842473437, 3.9354286406456622, 15.242376460397931, 15.651810621492071, 10.701941569244777, 20.706235593595043, 20.416308556576332, 16.367594643169188, 7.69269369596769, 2.5523679818850735, 21.32150336244913, 11.436879889122993, 5.905613593789723, 17.302408263691795, 6.876717073038305, 7.2335418646082505, 2.9692383888983236, 7.139550823020089, 20.492100837396773, 7.204575397391869, 7.059110747346556, 17.946166072929458, 15.38110764786827, 11.252502017199312, 8.316685636640004, 8.331406060098356, 5.457328048781272, 18.624250848484465, 2.870604343363195, 9.828538523621557, 9.133397543780093, 2.364590021088629, 17.7450551214596, 4.159198038489539, 15.024625694431872, 12.456902842333553, 9.195957828678846, 10.50565062302026, 21.955746395373126, 9.346324193547265, 2.0813048982119735, 9.021089037091318, 20.680165258859645, 13.965352811317944, 16.12341556405151, 4.596486021032652, 8.250624146197868, 7.0385780502996935, 19.137664627059674, 17.504256342052038, 16.731869625918133, 8.063482369519164, 18.545409194559905, 15.015723882377685, 4.198152589596594, 11.239533397867499, 17.550597677259557, 16.359519508749656, 7.699054726408455, 13.3282703824285, 19.285345746595063, 4.728801896372781, 12.518719632744283, 9.836456915440948, 5.506029091336651, 19.449571135248508, 2.4007038361743653, 15.686237077706739, 18.362413836675287, 9.112869856106556, 8.9742652066729, 21.424069730171222, 20.5149197887984, 21.969133249794236, 15.585572654707452, 12.507307489343143, 3.4921645073294187, 14.895693458008532, 6.136715538275821, 21.487202026370028, 21.23262181214031, 16.66736014600979, 2.2883663779577295, 14.919008245994082, 5.312177799583102, 21.80302440790903, 15.036567390000737, 5.0091094519593575, 16.934252085684676, 16.70162944445453, 2.3125337141529205, 20.475638388404, 15.586458319196792, 12.980082658915247, 14.54966980142575, 10.015990260533666, 11.177748449428055, 6.81482336217141, 18.409111454556115, 19.444239102573686, 8.478354293199992, 13.430936044383786, 5.534864190661038, 14.333908618590467, 5.626803643545999, 4.805564050181461, 4.159324935777969, 16.58280466709637, 12.091884805585334, 14.386510771072297, 17.25661968454103, 6.523164596458271, 11.444999386010029, 19.270513834950577, 18.744196126992797, 20.625526893880277, 10.991085632790682, 16.06934108331452, 6.68724439506923, 3.701884949446475, 18.23773710155289, 4.378043778104464, 3.149423120069437, 7.264608073941415, 12.764235339665058, 13.568737914137788, 8.900620039982705, 16.12551458866931, 2.4439670037970234, 8.908819324895656, 5.4070201426436775, 2.549777046148636, 15.354954437659945, 6.0652891465023515, 7.094756077599567, 20.451594587488707, 2.664289958976718, 12.094678733638991, 5.138683291393509, 11.551401341693328, 12.348188866861626, 9.058560527423008, 4.125703856609126, 6.172192374079222, 8.03569918151386, 2.6252781726965084, 11.989016834734121, 13.941212370150765, 6.444937528451853, 6.480467614695689, 14.193451175796174, 2.0347600215972665, 7.624971860925092, 7.309809894591737, 9.55818565627116, 14.650909788770615, 15.329004497705675, 12.06856589541158, 5.572353278971587, 9.214854689056677, 7.262309065936421, 6.235106720023145, 21.739426144674265, 17.26471932601413, 15.80326477340887, 19.666658698213624, 20.302540268229627, 16.494788168809478, 3.97381741155233, 4.603479969973175, 6.211228016516784, 13.723956144815585, 15.701783086882509, 7.145419959492612, 6.898375037759055, 6.228161384282549, 3.7280646491248164, 12.329112467428686, 4.081264338447832, 21.40202010154985, 8.91998385371831, 3.8972757512032334, 18.736946221669925, 17.776385524881178, 7.1047118343917735, 13.283148801293805], "expected": [2.7153214116729814, 2.023159741692237, 3.0854198086552374, 2.9588040004993896, 3.2258994447128995, 1.6635922569087307, 2.8257704993190345, 3.440898616228047, 2.4823460847426717, 3.7161410038257574, 3.0262367154462457, 2.0977044732592747, 3.475262441523069, 3.54334682364656, 2.4256852121197654, 3.3411635362041956, 2.961585687601667, 2.761015235962149, 1.8564470596542981, 3.358021378942311, 3.590727159972337, 3.52956193885893, 3.7823920768029633, 2.4150023526088904, 1.9732891985768934, 2.852037853594601, 3.5145088114185508, 2.8434130113672706, 3.6596527161397234, 2.147482150980093, 1.7018961062753108, 2.107925677449203, 2.4507143582655355, 3.12911549205365, 2.179426425955846, 3.683024902394783, 2.1308633588016077, 2.8968201018150745, 3.586388997777361, 3.4246039130602393, 3.3915544610975012, 2.9276892794530656, 1.8233172907435597, 3.652777252195087, 3.5835400615216013, 2.609453249616952, 3.35568368114476, 2.1202615330189225, 3.353143805718424, 3.3004573102030874, 3.3726883242304204, 3.2187678638388135, 2.91026618169539, 2.9768772369316356, 3.732521075052028, 3.5443599870331557, 2.966383190188361, 1.4319542438630304, 2.9544473586225153, 3.7656438384474704, 3.6542398388906068, 3.8039972058206573, 2.734854279506272, 3.7807879518987964, 3.478630061188874, 1.9837173822126317, 2.8171354405491917, 2.427338899298411, 3.368087376200216, 3.248494129635292, 3.462854423310188, 1.7058071466587967, 3.3836861174543387, 3.482699077377418, 3.487004420214386, 3.2659810143882555, 3.257372059254372, 1.8387120288701397, 1.4639179490053884, 2.2545111068642285, 1.460500591384736, 3.449263475962155, 2.1408057303330774, 2.117212516441089, 3.2675270337370987, 2.1954544481353113, 3.2913037338578075, 3.7238688706679475, 3.3454581788940265, 3.2762120764974325, 2.3641564552089225, 3.6443087205086506, 3.736526529095794, 2.4813243918504044, 3.2121087276140807, 2.91583055439329, 1.9550855982060353, 2.26891184097893, 3.0001284047345127, 3.530507695011531, 3.3744832021310196, 2.849838460144316, 3.5110187102968893, 2.6665864403813915, 3.2921383731638976, 2.4760390233030214, 3.304812848499285, 3.7719502703701777, 3.442889637696244, 3.555955158786038, 3.7098916228615715, 2.407845440065894, 3.227396518605228, 2.4260571641009014, 2.5282200602427722, 3.0404779203858454, 3.7917623111897747, 2.7430582692071086, 3.1715507680747805, 2.225269184634569, 3.4727407718173264, 3.2678650308088115, 2.598660175389891, 2.8119385505578336, 1.945539108066785, 2.6377519312367967, 2.8335497321306455, 3.0335179877255802, 3.2257305858343055, 3.211751551717243, 2.7025589001962693, 3.5232053403500907, 3.242584947145056, 2.281071836066507, 2.777517840055539, 3.0954683194658563, 3.514458260381916, 1.9886552494209075, 2.450897402597414, 3.672172147403882, 2.770487927397867, 1.928568445499844, 1.9710238054986062, 3.5805729644090403, 2.734572465263217, 3.360828882298672, 3.1095570585390946, 2.1126389573378734, 3.0219591772452197, 1.9444199850155592, 3.072542638383135, 2.261073582793627, 2.3227236679846146, 1.5439132722987972, 3.5072086054220284, 3.1084584145723153, 3.6867662900216276, 3.726238462362535, 3.767849824969359, 2.3750065394456708, 3.5369336918615644, 3.7445182634069067, 2.967815400180036, 2.978201551411032, 1.7745118757717586, 3.3562422602268254, 2.7154238709712755, 3.1706089450292554, 3.6386333812442535, 3.2791668022253293, 3.083168704089833, 2.455609174014115, 3.6990376073791738, 3.3737631846161573, 2.4090252973739066, 3.787002092384238, 1.9629949543187788, 2.547229584524467, 3.5905220009125123, 3.191928600701609, 2.8302054705457667, 3.1552713093471114, 3.2193191212925987, 3.439720471455399, 2.4984869496921265, 2.3268040020458955, 3.184897900929371, 3.0351341646300405, 3.3841803767617535, 3.5355479550291515, 2.917085446275833, 2.8671011363274417, 1.4265935209792955, 3.082176737306424, 3.1621213136225528, 3.083156035128515, 2.6192316369031885, 2.2367613011700658, 3.6649745357152184, 3.5259063664849624, 2.885075582364594, 2.2356979181073657, 1.9612709475753967, 3.2909478057116757, 2.5013411296444437, 3.7810399265135453, 3.660103295957816, 2.05656415514773, 2.646116079365781, 1.8803874503504914, 3.348927973934877, 3.5182956278006237, 1.955633150336014, 2.6355468195578173, 3.514426116663474, 3.046543936612647, 3.76176304966305, 2.7440124413933256, 1.4906327124000023, 2.0868235403058306, 1.7498418602910886, 2.7979850056870634, 3.3977271443889583, 2.855325400231291, 3.288714328422663, 2.024100446858986, 3.506347734387165, 2.959173440059941, 2.7621077638815104, 2.6056392397879007, 3.3018462552039467, 3.600321480636304, 3.0010379627108055, 1.4928674778788382, 2.966848628743703, 3.1158007444615046, 3.14635221314324, 1.983374520630346, 3.4803109097386367, 2.1917592788926235, 3.289166623744791, 3.588943838313908, 3.66404995616785, 2.622821697271633, 3.0842339740472715, 2.711910352247305, 2.9406789242246143, 3.629510732528085, 1.9323650548122897, 1.6484300195251622, 3.70989944793381, 3.5938108994876865, 3.334187279550938, 2.803769448405198, 2.431314115599317, 3.5492039596115856, 3.517028220945587, 3.5517598510699497, 3.0096235218736105, 3.482700071108277, 2.5385606656344573, 2.710979532851516, 3.233035741210878, 3.091974609529496, 3.1348464028646585, 3.5158444172871874, 3.6497381027539055, 3.8152171753969304, 2.6254611682957383, 2.9334904568840936, 1.9871279004201496, 2.45903944375312, 3.000434065647487, 3.2019956917954238, 2.1632757036631425, 3.5572906814400023, 3.674340906650799, 3.5697610916146116, 2.935507859914447, 2.690029243760844, 2.0381257383889877, 2.6797004090663097, 3.3466465382635007, 3.7087081330914, 2.7226653210716725, 3.7971369891187936, 2.4431529698357193, 1.8230606299230492, 3.749425529057429, 3.295411724800171, 3.730518822689078, 3.647169690864716, 1.9905893000768824, 3.154406477521756, 2.737988158811827, 1.8482055537778828, 3.2210524856972027, 3.642253078353667, 2.4022357647471435, 3.7088648207232495, 2.7730658049774544, 2.324564843467365, 3.5474585226283315, 3.645092138647671, 3.698429940577458, 3.350510454259017, 3.708801176780243, 3.668016982885225, 3.5513189318839182, 3.4968556469088083, 3.5892720637411744, 3.4023934749791964, 3.629620890294511, 2.8984232126367266, 1.929203625257053, 2.0989850280625384, 3.1600564541879606, 3.4228890610219342, 3.6684327622474333, 3.2348271405322504, 3.518563511307469, 3.152490642473243, 3.707816892221434, 3.737217913067279, 3.802238136745274, 3.4280101224749076, 2.54045283369902, 3.4828885927654447, 2.3170921012839503, 2.3530783021550294, 3.5050430858898136, 2.3340488692069097, 3.6340533713745797, 3.033795101839398, 3.4525233886144164, 3.5123937150597406, 1.8779567528334553, 3.7492864836091373, 3.668915282835497, 3.6547428070450354, 2.00739315207998, 2.0069776310147343, 2.605725212288468, 2.6188857895817113, 3.4000675673536565, 3.248389050623661, 3.614077044274661, 3.5006939133735395, 3.4219657850379384, 2.942107525289811, 2.843750937858032, 3.015489821675097, 3.456256067869496, 3.440047747714459, 3.605909403414707, 3.2218449517203496, 3.7013519201026117, 3.733318336824934, 1.703444322953874, 2.830636586040385, 2.3682631604493736, 3.673682792456312, 3.3392156953079137, 3.7312982166558353, 3.4863569051318395, 3.696776192718779, 3.7267414522079765, 3.3781574983989566, 3.6328136245899603, 3.813607127053422, 3.4613469899169584, 2.557559902718098, 3.747752657705401, 1.8725922207746515, 2.8013567563909847, 3.087536327445868, 2.2894060791227586, 3.262747070345406, 3.100670132826075, 1.8821674508094781, 2.2200491914848284, 2.6256677342275543, 3.7920591893549886, 2.586364107207878, 3.250874483807678, 3.382577720425218, 3.4218536881506054, 3.608844722117961, 3.42363711107409, 3.57567471068915, 2.8837847793103175, 3.6968099736538704, 3.6263818231173763, 3.4762785809096237, 3.5806256557747957, 3.355047695563049, 3.7216003597858522, 3.491335771488398, 3.7763616406584797, 2.770457352241832, 1.9259117739880005, 2.8624303892499277, 3.5156663222503295, 3.425282590173313, 3.7017464681409393, 3.451820915072323, 2.269342983557282, 2.272431768022404, 2.577731771473856, 2.9218142770175977, 3.7824292521940204, 3.6272323409248304, 2.2967330336122234, 2.673749068174114, 3.6000953215783014, 1.5264050303170336, 3.1620557060092147, 3.039773419180989, 2.3302825701425123, 2.996668090230891, 3.4703827179466518, 2.4657817430342055, 3.719384658310359, 2.776840988740712, 3.2030081980975886, 2.9213770132497907, 3.7035201600172347, 3.606599506372322, 3.624240417098078, 3.3934826530576325, 3.428943321496227, 1.4275579049810292, 2.743846990454956, 3.7237561789926343, 3.280325284774835, 2.424012657346161, 2.988730291176046, 3.51513982998732, 3.486824685693042, 2.3066399778901046, 3.1535099950239407, 1.9804791474887287, 3.221411288259616, 3.2597355721059684, 2.159177065884321, 1.4673508416725596, 2.8543401205162455, 1.6464534431817182, 3.6842584212310423, 2.7151892263062747, 3.73851177332065, 3.1155781895736094, 3.302173084370155, 2.779184100815262, 3.5059082787665945, 2.509894861141677, 3.4998078255837672, 3.4765987159691427, 3.203304230514299, 3.529913516326565, 3.1387818849498497, 2.846204738272903, 2.852352866252409, 3.536381473818375, 3.1370313852765968, 2.609151845804322, 2.5377481689382617, 3.1749059193040883, 2.190524661258871, 3.382919922365859, 3.2147983935233593, 3.7377215597389952, 3.332872082312461, 3.76068548889673, 1.7034115655674265, 2.123104156429141, 2.4530056834544243, 3.741889895313073, 3.5629836993499926, 3.3440208390978685, 2.1747769135493225, 3.1781595576199493, 2.8335553416408916, 3.2502279604306983, 2.1774830002225793, 3.6131122866846157, 2.8167471620431614, 3.174969123093406, 2.6581646809591004, 2.399256285657082, 2.5497274915461383, 3.801206114953703, 1.7532031003825534, 1.9499419002903426, 2.947917358012825, 2.849927641940075, 1.5518794324716882, 2.5318095163407994, 3.123105397637706, 3.62407648198016, 3.723558893186019, 1.760844498121923, 3.5474929921006546, 2.847142714888306, 3.404432679544304, 3.2301216900552263, 2.8892434286301896, 3.5189503568080154, 3.310298825211078, 3.164998521653166, 3.8012735133552753, 3.1230501930238783, 3.0487098529034355, 3.200011767152065, 1.5976592042634592, 2.7796747483184214, 3.622784124147106, 3.1542498445996277, 3.656878548460553, 3.4915779532024853, 3.5757998293034134, 3.2018386074808203, 1.4496609693535687, 3.274609242925399, 3.7683449348647207, 3.444783572464746, 3.252390122557215, 3.1914925939713448, 2.213208299687504, 3.722328262951607, 2.2827584508899705, 3.148656167812517, 2.6054504512112246, 3.5524889495813827, 2.1047815440196183, 2.6167207915804553, 1.6360635613632806, 2.7242286609879227, 1.969274462300414, 1.8175424994966525, 3.3221591709361658, 2.7552320404953647, 3.504977517519941, 3.3482572428040798, 3.635725671700324, 3.3003221601862407, 2.087724883258983, 2.0499592637322346, 3.6432328217050824, 3.808501010348802, 2.993352460283708, 2.5831298336242035, 3.6712060357876104, 2.5317109757326763, 3.7239647605699497, 3.6968805788275287, 3.5710476451993256, 3.5876911004708756, 3.6255735620062017, 3.6151224817760603, 2.2550193447485105, 2.86180765539083, 3.2412912005524346, 3.2669638514759733, 2.7260495923428363, 3.505396180634274, 3.104343283450788, 3.6253122157564217, 3.1813116074049788, 3.212865199687577, 2.605120150024841, 3.383302477632117, 3.346749972850281, 3.4576778439605462, 2.94479217378379, 2.8107362980195147, 3.2948147359913675, 2.6758589671392525, 3.707665382054615, 3.0592439001944176, 1.4925814934003259, 2.5423108765386586, 3.0488423893184677, 3.6566471258231283, 2.6963133048082746, 1.9078020458510436, 2.046437461510208, 3.1347251127796163, 2.939692192106596, 3.7526611786026756, 3.625872025308231, 3.4465638240726877, 2.412365193504339, 3.7164102168804742, 3.381393234766458, 2.3789194483476592, 3.314009602981523, 3.54908112520423, 2.9657653733853397, 2.165920313269491, 3.720135147838348, 2.4153595209501795, 2.3867745162933924, 3.789508229215809, 3.0825692594819816, 3.1199142221213827, 1.547052019148986, 2.923750325120825, 3.2521678372588374, 3.128893719498336, 3.816110519963565, 3.767719523364575, 3.418512244832329, 2.9289088781154153, 3.274284352818758, 2.5465960115541413, 3.7069725901841633, 3.1398007383297895, 2.9324745952629687, 2.428126115959497, 3.235286099536381, 3.812046384431841, 3.2690630474646905, 3.085879370759544, 3.4207267281672573, 3.5960142594246323, 3.665797701013397, 3.637485130482267, 3.2930586538223983, 2.9784229916850076, 3.812532458955428, 2.415849536843259, 3.7872482804564966, 3.3583923896735293, 2.4664479066932503, 1.5403747483355055, 2.642551307988084, 2.6613237917561565, 3.1949293238117455, 2.5044306941188883, 3.4694834367993383, 2.4733551933202973, 3.498217825585031, 3.6539250994216457, 2.8720701393786516, 3.0255531409010095, 3.7389043552033896, 3.0132880797227184, 2.5823624885651832, 3.0036333595540716, 3.6225599564505964, 3.5746484529364557, 2.7027960657769987, 3.690797464492161, 2.6970813851165634, 3.7199820620914132, 1.9965383650233592, 2.8601781970492453, 3.114802163467195, 2.3142214356103783, 2.9799573786263287, 3.462562685639903, 3.486176119905563, 3.427186271035385, 3.2818677435935704, 3.698102098164798, 3.7591476031642936, 3.784729238576548, 3.678169309680926, 2.8070765169369682, 2.8821582844350924, 3.427892111557293, 3.7576508693502286, 2.6295520547536584, 3.7937165907260546, 2.4829188548310124, 3.4505801311145823, 2.9572210791521916, 2.6038049250141073, 3.0996267815032947, 1.4886967519749137, 3.4405788880735266, 2.757971300555447, 2.824396423671519, 3.121376272649621, 1.963742506095691, 3.8000960086256983, 3.658001452245368, 3.626772554463807, 1.5367908872470708, 2.4693413090654306, 3.115805605402555, 3.0206619539613784, 3.6326016574126863, 3.7649175308125122, 3.4262986149163672, 1.8037495051211136, 2.9101637725369605, 2.569493256259106, 1.742759396035582, 3.3070099061025866, 2.1229836716235173, 3.677382754637588, 3.374758670404494, 3.1682138969802756, 3.2288682547253678, 3.0311171989303642, 2.0538092665960503, 3.5808759543289286, 3.5073292826963622, 3.0541804733618445, 3.5070486023312735, 3.6830474420124593, 1.8428859682221392, 2.7509966419149054, 1.9937689689574514, 2.792021879313062, 2.849530905479065, 3.321186699902269, 2.4966558401546015, 2.6552152666428497, 3.528020314567471, 3.1469480284413907, 3.6733137006547625, 3.173841675384229, 3.815291578630311, 3.629401822770006, 3.3731531888817767, 3.5474159491450177, 3.1404427426958725, 3.7643983223862594, 3.1349378937791843, 3.2243608279873737, 2.660788262337946, 3.4529126496667373, 3.5116860274795485, 3.6711806854366698, 3.4858125136092464, 3.474981583078997, 3.18477066208919, 3.614279770488392, 2.0862782676066933, 3.4661515099159423, 2.0904822390037405, 3.723791952512136, 3.59426215549617, 3.489082873796915, 2.8667078014926037, 3.334726647014475, 3.2817886033029193, 3.353296559568029, 3.2205841483735953, 3.0149395466680113, 3.7463258264449455, 3.763895209648803, 3.686331262830486, 3.256971440083306, 2.9856147216651223, 2.857830737688747, 2.327637382467348, 2.023941620100174, 2.499766220637985, 3.030606336554676, 3.5469304615456045, 3.7071429584060462, 3.7325296845861287, 3.1377355821203117, 3.615108870706703, 1.857588810056661, 3.1542763355936567, 1.8978400048729855, 2.763150462027348, 3.5652407077347306, 3.1708759741325943, 2.403474906712157, 3.565501155842725, 3.666821859930457, 3.414729873763623, 3.370983832634334, 3.7813242647272887, 3.4770820250525247, 2.7043929776807585, 2.5788580482289976, 2.353843902173898, 3.469851057302307, 3.1765962650754367, 3.5870398918413136, 3.677019346655572, 3.4202643870668683, 2.6669665813994907, 3.575121706523058, 3.12261941249049, 3.4080451496245754, 3.3817256931755013, 2.063184603360522, 3.539851362697686, 2.5730231702562976, 2.45271973884873, 3.1301703489734156, 2.823663763520104, 3.806050361070226, 3.7670697613307174, 3.6658698060993813, 2.0236870345431575, 3.782567085288842, 3.2873412799200117, 3.776187136463878, 2.4656857451469887, 3.321371908639035, 3.7604503911204756, 3.6259790277158985, 3.3763482362055357, 3.343581265637406, 2.647916686487441, 2.8165116546118085, 2.0958111588600623, 3.4498708264681657, 3.476377957602808, 3.0962165327212134, 3.756226243959032, 3.7421253731615676, 3.5210947963450616, 2.7660623603880836, 1.662812901261017, 3.785507463642532, 3.162634564432116, 2.5016947077830274, 3.5766370504539506, 2.6539327210918042, 2.704520153315992, 1.814096837859963, 2.691441217076143, 3.7458308395272986, 2.7005076486999755, 2.6801104397502025, 3.6131678555137414, 3.4589313328460545, 3.1463818580964302, 2.8440551671302616, 2.845823589308946, 2.42275065426669, 3.650255893201225, 1.7803139328493751, 3.0110816006357664, 2.9377291076868155, 1.5863960069560932, 3.601898245047723, 2.1511136291243536, 3.43548192057145, 3.248066267074866, 2.9445553737020513, 3.0777046196283213, 3.814820252681453, 2.9607744842677715, 1.4587864045627303, 2.9253564152507137, 3.754966393493821, 3.3623708156910843, 3.5060639509050686, 2.251083455741858, 2.836080204214281, 2.677197520922149, 3.6774497159199253, 3.588235423546948, 3.5431066142936607, 2.8131368716256535, 3.6460136282962057, 3.434889263532491, 2.160435921547572, 3.1452286836033583, 3.590879357661026, 3.520601313507197, 2.766888911164299, 3.315678724660296, 3.685136872409444, 2.279463224198888, 3.253016447331932, 3.0118869292992674, 2.431635042921227, 3.6936163728644673, 1.6015533120774836, 3.4785750612892863, 3.6360972017811086, 2.935479036931596, 2.92015241254465, 3.790306396357255, 3.74694376865058, 3.8154297867288416, 3.4721370091548143, 3.25210442528892, 1.9763130992860547, 3.4268634941551603, 2.540081023058848, 3.793248855956555, 3.7813301163609503, 3.5392436772997304, 1.553629543569083, 3.4284274737628997, 2.3957932355657685, 3.8078400471248104, 3.4362764130697006, 2.3370494978414396, 3.555129674117817, 3.5412976388318684, 1.5641351220360513, 3.7450271608186383, 3.472193833459289, 3.289207432075683, 3.403359651944629, 3.029974194611189, 3.139716409162081, 2.6448914984802716, 3.6386370824422896, 3.6933421887371924, 2.8633077144165613, 3.323352058769232, 2.4368583820383662, 3.3884193150454753, 2.4533328970802217, 2.2955657763526527, 2.1511441386965053, 3.534157647701988, 3.218325903018491, 3.392082368191457, 3.573987172337428, 2.6011509783855074, 3.163344252402251, 3.6843674997362847, 3.6566755172500685, 3.752320830909122, 3.1228758998748893, 3.502704528648374, 2.625993242838341, 2.0346334883677972, 3.6292842671796715, 2.202393351262435, 1.873010652224842, 2.708805701059869, 3.2724384986583046, 3.3335598165757814, 2.911912294369947, 3.5061941272929875, 1.6194138929615567, 2.9128330741120005, 2.413489488327776, 1.6617972751096972, 3.4572295392690235, 2.5283735685131394, 2.6851472831871783, 3.7438522070319737, 1.7057289428595794, 3.21855693443902, 2.3625882303053314, 3.1725981105379852, 3.2393007545079353, 2.929501577893613, 2.143027989780647, 2.5458454554996996, 2.809685365038346, 1.690978213624883, 3.2097823195509347, 3.3606407247944325, 2.5890862959635865, 2.594584023166984, 3.3785720260704366, 1.4361692390804979, 2.7572199847609133, 2.7150086198564463, 2.983189276787728, 3.410293787802145, 3.455538105240206, 3.2163955650704734, 2.4436088090957875, 2.946608174684687, 2.7084891840725347, 2.5559870479130273, 3.8049188377002703, 3.5744564265352015, 3.486007902560766, 3.7047161027066764, 3.7365373672295585, 3.5288358150972807, 2.1055185499594606, 2.2526038853379435, 2.5521499772718768, 3.3449342821254477, 3.4795656309630303, 2.6922629389952326, 2.6570772347389937, 2.5548725189786556, 2.041680590821148, 3.2377546856753328, 2.132198179930246, 3.789276667486076, 2.9140854891137415, 2.086069136365332, 3.656288661089397, 3.603662273250182, 2.6865495552279763, 3.31228757711839]}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py
new file mode 100644
index 000000000000..9f3ff44d3062
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/fixtures/python/runner.py
@@ -0,0 +1,66 @@
+#!/usr/bin/env python
+#
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Generate HalfNormal entropy fixtures."""
+
+import os
+import json
+import numpy as np
+from numpy.random import rand
+from scipy.stats import halfnorm
+
+# Get the file path
+FILE = os.path.realpath(__file__)
+DIR = os.path.dirname(FILE)
+
+
+def gen(sigma, name):
+ """Generate entropy fixture data and write to JSON.
+
+ # Arguments
+ * `sigma`: scale parameter array
+ * `name::str`: output filename
+
+ # Example
+ ``` python
+ python> sigma = rand(1000) * 10.0 + 1.0
+ python> gen(sigma, './data.json')
+ ```
+ """
+ y = []
+ for s in np.nditer(sigma):
+ y.append(halfnorm.entropy(scale=float(s)))
+
+ data = {
+ "sigma": sigma.tolist(),
+ "expected": y
+ }
+
+ filepath = os.path.join(DIR, name)
+ with open(filepath, "w", encoding="utf-8") as outfile:
+ json.dump(data, outfile)
+
+
+def main():
+ """Generate fixture data."""
+ sigma = rand(1000) * 20.0 + 2.0
+ gen(sigma, "data.json")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js
new file mode 100644
index 000000000000..8cf1b09270db
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.js
@@ -0,0 +1,86 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var NINF = require( '@stdlib/constants/float64/ninf' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var entropy = require( './../lib' );
+
+
+// FIXTURES //
+
+var data = require( './fixtures/julia/data.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof entropy, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', function test( t ) {
+ var sigma = entropy( NaN );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided a scale `sigma` that is not a positive number, the function returns `NaN`', function test( t ) {
+ var sigma;
+
+ sigma = entropy( 0.0 );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ sigma = entropy( -1.0 );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ sigma = entropy( NINF );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns the differential entropy of a half-normal distribution', function test( t ) {
+ var expected;
+ var sigma;
+ var delta;
+ var tol;
+ var i;
+ var y;
+
+ expected = data.expected;
+ sigma = data.sigma;
+ for ( i = 0; i < expected.length; i++ ) {
+ y = entropy( sigma[ i ] );
+ if ( y === expected[ i ] ) {
+ t.strictEqual( y, expected[ i ], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
+ } else {
+ delta = abs( y - expected[ i ] );
+ tol = 40.0 * EPS * abs( expected[ i ] );
+ t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js
new file mode 100644
index 000000000000..23ea650718a1
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/entropy/test/test.native.js
@@ -0,0 +1,95 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var abs = require( '@stdlib/math/base/special/abs' );
+var NINF = require( '@stdlib/constants/float64/ninf' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+
+
+// VARIABLES //
+
+var entropy = tryRequire( resolve( __dirname, './../lib/native.js' ) );
+var opts = {
+ 'skip': ( entropy instanceof Error )
+};
+
+
+// FIXTURES //
+
+var data = require( './fixtures/julia/data.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof entropy, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', opts, function test( t ) {
+ var sigma = entropy( NaN );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided a scale `sigma` that is not a positive number, the function returns `NaN`', opts, function test( t ) {
+ var sigma;
+
+ sigma = entropy( 0.0 );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ sigma = entropy( -1.0 );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ sigma = entropy( NINF );
+ t.strictEqual( isnan( sigma ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns the differential entropy of a half-normal distribution', opts, function test( t ) {
+ var expected;
+ var sigma;
+ var delta;
+ var tol;
+ var i;
+ var y;
+
+ expected = data.expected;
+ sigma = data.sigma;
+ for ( i = 0; i < expected.length; i++ ) {
+ y = entropy( sigma[ i ] );
+ if ( y === expected[ i ] ) {
+ t.strictEqual( y, expected[ i ], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
+ } else {
+ delta = abs( y - expected[ i ] );
+ tol = 40.0 * EPS * abs( expected[ i ] );
+ t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ t.end();
+});