diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/README.md b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/README.md
new file mode 100644
index 000000000000..c579c18721a0
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/README.md
@@ -0,0 +1,246 @@
+
+
+# Median
+
+> [Half-normal][half-normal-distribution] distribution [median][median].
+
+
+
+
+
+The [median][median] for a [half-normal][half-normal-distribution] random variable with scale parameter `σ > 0` is
+
+
+
+```math
+\mathop{\mathrm{Median}}\left[ X \right] = \sigma \Phi^{-1}(0.75)
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var median = require( '@stdlib/stats/base/dists/halfnormal/median' );
+```
+
+#### median( sigma )
+
+Returns the [median][median] for a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`.
+
+```javascript
+var y = median( 1.0 );
+// returns ~0.6744897501960818
+
+y = median( 4.0 );
+// returns ~2.6979590007843268
+
+y = median( 0.5 );
+// returns ~0.33724487509804085
+```
+
+If provided `NaN` as any argument, the function returns `NaN`.
+
+```javascript
+var y = median( NaN );
+// returns NaN
+```
+
+If provided `sigma <= 0`, the function returns `NaN`.
+
+```javascript
+var y = median( 0.0 );
+// returns NaN
+
+y = median( -1.0 );
+// returns NaN
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var uniform = require( '@stdlib/random/array/uniform' );
+var logEachMap = require( '@stdlib/console/log-each-map' );
+var median = require( '@stdlib/stats/base/dists/halfnormal/median' );
+
+var opts = {
+ 'dtype': 'float64'
+};
+var sigma = uniform( 10, 0.0, 20.0, opts );
+
+logEachMap( 'σ: %lf, Median(X;σ): %lf', sigma, median );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/stats/base/dists/halfnormal/median.h"
+```
+
+#### stdlib_base_dists_halfnormal_median( sigma )
+
+Returns the median for a [half-normal][half-normal-distribution] distribution with scale parameter `sigma`.
+
+```c
+double out = stdlib_base_dists_halfnormal_median( 4.0 );
+// returns ~2.6979590007843268
+```
+
+The function accepts the following arguments:
+
+- **sigma**: `[in] double` scale parameter.
+- **return**: `[out] double` median.
+
+```c
+double stdlib_base_dists_halfnormal_median( const double sigma );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/stats/base/dists/halfnormal/median.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 < 10; i++ ) {
+ sigma = random_uniform( 0.1, 20.0 );
+ y = stdlib_base_dists_halfnormal_median( sigma );
+ printf( "σ: %lf, Median(X;σ): %lf\n", sigma, y );
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[half-normal-distribution]: https://en.wikipedia.org/wiki/Half-normal_distribution
+
+[median]: https://en.wikipedia.org/wiki/Median
+
+
+
+
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/benchmark.js
new file mode 100644
index 000000000000..52813a5d6133
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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 median = 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 = median( 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/median/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..0049063fd7db
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/benchmark.native.js
@@ -0,0 +1,67 @@
+/**
+* @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 uniform = require( '@stdlib/random/base/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var median = tryRequire( resolve( __dirname, './../lib/native.js' ) );
+var opts = {
+ 'skip': ( median instanceof Error )
+};
+
+
+// MAIN //
+
+bench( pkg+'::native', 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 ] = uniform( EPS, 20.0 );
+ }
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ y = median( 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/median/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/c/Makefile
new file mode 100644
index 000000000000..979768abbcec
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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/median/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/c/benchmark.c
new file mode 100644
index 000000000000..17c979769a37
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/benchmark/c/benchmark.c
@@ -0,0 +1,138 @@
+/**
+* @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/median.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "halfnormal-median"
+#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( 0.1, 10.0 );
+ }
+
+ t = tic();
+ for ( i = 0; i < ITERATIONS; i++ ) {
+ y = stdlib_base_dists_halfnormal_median( 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/median/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/binding.gyp
new file mode 100644
index 000000000000..0d6508a12e99
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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/median/docs/repl.txt b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/repl.txt
new file mode 100644
index 000000000000..c95bf568cc87
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/repl.txt
@@ -0,0 +1,34 @@
+
+{{alias}}( σ )
+ Returns the median of a half-normal distribution with scale
+ parameter `σ`.
+
+ If provided `NaN` as any argument, the function returns `NaN`.
+
+ If provided `σ <= 0`, the function returns `NaN`.
+
+ Parameters
+ ----------
+ σ: number
+ Scale parameter.
+
+ Returns
+ -------
+ out: number
+ Median.
+
+ Examples
+ --------
+ > var y = {{alias}}( 1.0 )
+ ~0.674
+ > y = {{alias}}( 5.0 )
+ ~3.3724487509804086
+ > y = {{alias}}( NaN )
+ NaN
+ > y = {{alias}}( 0.0 )
+ NaN
+
+ See Also
+ --------
+
+
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/types/index.d.ts
new file mode 100644
index 000000000000..d03357a8db5e
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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 median for a half-normal distribution with scale parameter `sigma`.
+*
+* ## Notes
+*
+* - If provided `sigma <= 0`, the function returns `NaN`.
+*
+* @param sigma - scale parameter
+* @returns median
+*
+* @example
+* var y = median( 1.0 );
+* // returns ~0.6744897501960818
+*
+* @example
+* var y = median( 5.0 );
+* // returns ~3.3724487509804086
+*
+* @example
+* var y = median( NaN );
+* // returns NaN
+*
+* @example
+* var y = median( 0.0 );
+* // returns NaN
+*/
+declare function median( sigma: number ): number;
+
+
+// EXPORTS //
+
+export = median;
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/types/test.ts b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/types/test.ts
new file mode 100644
index 000000000000..4c275e11fa1a
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/docs/types/test.ts
@@ -0,0 +1,42 @@
+/*
+* @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 median = require( './index' );
+
+
+// TESTS //
+
+// The function returns a number...
+{
+ median( 2 ); // $ExpectType number
+}
+
+// The compiler throws an error if the function is provided a value other than a number...
+{
+ median( true ); // $ExpectError
+ median( false ); // $ExpectError
+ median( '5' ); // $ExpectError
+ median( [] ); // $ExpectError
+ median( {} ); // $ExpectError
+ median( ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided insufficient arguments...
+{
+ median(); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/c/Makefile
new file mode 100644
index 000000000000..c8f8e9a1517b
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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/median/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/c/example.c
new file mode 100644
index 000000000000..ced17f1dcb7f
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/c/example.c
@@ -0,0 +1,38 @@
+/**
+* @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/median.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 < 10; i++ ) {
+ sigma = random_uniform( 0.0, 20.0 );
+ y = stdlib_base_dists_halfnormal_median( sigma );
+ printf( "σ: %lf, Median(X;σ): %lf\n", sigma, y );
+ }
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/index.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/index.js
new file mode 100644
index 000000000000..a159b91ed14d
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/examples/index.js
@@ -0,0 +1,32 @@
+/**
+* @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 median = require( './../lib' );
+
+var opts = {
+ 'dtype': 'float64'
+};
+
+// Generate positive standard deviations:
+var sigma = uniform( 10, 0.1, 20.0, opts );
+
+logEachMap( 'σ: %lf, Median(X;σ): %lf', sigma, median );
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/include.gypi
new file mode 100644
index 000000000000..bee8d41a2caf
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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",
+ "parameter",
+ "continuous",
+ "median",
+ "middle",
+ "half",
+ "ordered",
+ "central",
+ "halfnormal",
+ "univariate"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/Makefile b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/Makefile
new file mode 100644
index 000000000000..2caf905cedbe
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/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/median/src/addon.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/addon.c
new file mode 100644
index 000000000000..3950a393a1d0
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/addon.c
@@ -0,0 +1,23 @@
+/**
+* @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/median.h"
+#include "stdlib/math/base/napi/unary.h"
+
+// cppcheck-suppress shadowFunction
+STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_dists_halfnormal_median );
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/main.c
new file mode 100644
index 000000000000..d1bd8861598a
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/src/main.c
@@ -0,0 +1,39 @@
+/**
+* @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/median.h"
+#include "stdlib/math/base/assert/is_nan.h"
+
+static const double SQRT2_ERFINV_HALF = 0.6744897501960818; // sqrt(2) * erfinv(0.5)
+
+/**
+* Returns the median for a half-normal distribution with scale parameter `sigma`.
+*
+* @param sigma scale parameter
+* @return median value
+*
+* @example
+* double y = stdlib_base_dists_halfnormal_median( 1.0 );
+* // returns ~0.6744897501960818
+*/
+double stdlib_base_dists_halfnormal_median( const double sigma ) {
+ if ( stdlib_base_is_nan( sigma ) || sigma <= 0.0 ) {
+ return 0.0 / 0.0; // NaN
+ }
+ return sigma * SQRT2_ERFINV_HALF;
+}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/REQUIRE
new file mode 100644
index 000000000000..5fd1dae6de00
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/REQUIRE
@@ -0,0 +1,3 @@
+SpecialFunctions 2.6.1
+julia 1.5
+JSON 0.21
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/data.json b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/data.json
new file mode 100644
index 000000000000..f9954821e12c
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/data.json
@@ -0,0 +1 @@
+{"sigma":[3.081026554252815,2.982519734264404,2.6998860335999257,0.7403839975441312,1.5846856599078918,1.0404889924084737,4.501162771056791,4.325038441295068,4.067898663702034,4.110184550405518,2.3744905505589866,2.6128347615706744,4.317388070369287,3.920985857036046,2.1272433012479404,4.073055038063657,4.8137473410059615,1.7347153278505667,4.833179033066913,1.5239965269186655,3.7034628766557933,2.0309723983947574,3.1760090524786215,2.084661029001661,3.813642138166699,4.27877844581624,2.7577302908223738,3.2692882138031942,1.9441517715261225,4.420642356134101,3.3694515301062093,2.6382446235082915,3.6302744071311843,3.2154855962525857,3.960803157657682,4.364308698899688,2.6348738832136926,1.5779572323873448,4.472259556025438,1.1506199054542676,1.913080868600232,1.5066626282376594,0.8142007505364612,3.167455333777463,4.022642366855134,1.544949203685717,4.203425440687437,0.4060378803293607,1.1939420805146588,4.4328407902870275,3.905338751218737,3.2649904552105995,4.137830842860727,3.64289630325929,3.6703541633157317,1.081898644113584,2.7428023900323457,3.6388650482879643,2.948862369410633,2.2675307813076904,0.825814252272582,1.295255895325616,0.10224127020052876,2.783049476051595,1.9054907588234316,4.571228368607495,1.7424450093111232,4.086374224538775,2.1324463988754347,2.6810151927908343,0.31530359977079203,2.0324406557082213,0.3533467189285233,2.3074810094338654,4.793164101658868,2.3820745067204325,2.536960530105181,2.957579179921294,4.432354808215086,2.605867826435611,4.060183954549045,4.80446931678744,3.098757641034941,1.2784128439098352,1.3599170751037415,1.147085313180638,2.0455429891388395,0.3132816810411265,4.6549286657719575,1.1729207868011553,2.4042032639580944,1.0918044445529018,0.07287111515188516,2.261898911955913,0.7348551665733766,0.4276500201745864,3.537178959459708,1.6992530586614285,2.118267798662768,4.962031156458368,2.6538495878146984,2.2190986399856105,3.4671517646062666,4.321940236380713,4.493509503026708,2.3909719299217977,3.8104137128155067,3.347369246770628,4.674712912713302,4.488753174033492,2.8207084305024583,4.590742580008406,4.672287641764472,1.9361551246960529,0.26245515952071086,1.6770264222860787,1.3023252656958895,0.8504118175723085,0.2356865024821697,0.7154273598376881,2.7655133173952824,0.6656331174217262,4.2795453673574375,0.6870825002624259,2.826067647120066,1.982401639382116,1.079720132101788,0.18278915553135655,3.057038477955845,0.8527830666262637,0.21421399448870893,0.5302585608146276,4.756967202782559,1.2510689990039663,4.240428663609342,4.4863530542124295,3.937324412828978,3.980020654850605,3.5901164348946764,2.2824690124089733,4.517322153243165,1.2753141109190091,4.145821505169053,3.5608627190420217,2.642071285240908,2.333117652391685,3.2544617770203703,3.9274806828588615,3.5554895581978876,0.640820159055629,0.9754340329051092,0.3329029868840139,0.3727097160488263,4.201425756151657,0.9445506405370196,2.0474949805871843,0.16945892421818654,3.647186598828695,1.1692970817358024,1.299230434239997,1.1955056918217717,1.6634188336268667,3.5263915838113498,4.492805924560681,0.806189035877663,4.9934955338127205,2.388133198806608,3.8277180516973703,4.761703526933767,0.38376246696084193,1.0397069768618028,3.4854136239313482,2.1438250831214427,2.14767536856811,0.7353044648118007,1.87340641960408,4.876990264155751,2.401905455731061,2.8132231269841683,4.410163752639862,2.2522375681950413,0.6261610227614867,3.0377060922263297,2.6844139727629583,1.0264683459647457,2.8157955222044393,2.96255401791399,4.458898606965168,1.3211550051269472,1.5810058330343624,1.1234698340170601,0.31929610807513,4.580403459403946,2.3600978454351305,1.590144461120676,1.4094416927411924,2.3730028767815337,4.232528198938915,1.0322463272240567,3.139420192455012,2.268294171140535,1.3332166980639686,4.185605518940467,2.164718641250861,2.9733146946801767,2.5608828157028545,3.5962567850587366,3.4912538190633557,0.7381572766714017,3.914962787992651,1.8569940024258798,1.9213252424813898,3.9949599290554643,3.524109263582301,1.3322118027833758,1.305215782434555,4.455243960754488,4.840965715436035,4.025717982453033,2.7919364745523816,1.5219476815975952,4.114628724840258,1.7038997801268618,2.1017429173934983,3.778694969507307,4.4656164919637575,4.549231506217738,3.6828002020683486,3.493701641132172,1.2753756229423052,0.0018414990303866619,4.561342592766529,3.315934805347446,4.317925643197827,2.867036295898482,1.2970098813244146,0.4411619251486637,3.8026652864767625,1.5723336746937133,1.470985405266767,3.216357946923407,4.242937955787896,0.44285733536323313,2.5884888642997583,0.00895476462413003,0.5103483617825161,0.04672866192934333,3.9865348187812266,3.067369904858508,2.2574193070773423,2.881942085959477,2.8235191570352547,4.098447875449121,0.7497317001555237,3.3150756659597085,2.731923261428903,1.284204652364946,0.0035645271037842985,1.7075794986402293,0.09544431089667682,3.3768075500233974,0.9577694837869444,4.828209413679162,0.5643513731111971,1.4281788710758798,0.7608836866360452,4.536920517768674,4.423318842097521,0.6143559745636873,0.626898432176734,1.5466082212520327,3.2877253824921686,4.240744925487912,0.37015023618289733,3.2295114861300434,1.9990965125909976,4.6568032921321025,0.9369932537202164,4.417796031598956,4.522004351473909,4.7686818839738585,4.029213814169283,0.8974082343382428,4.269599336733317,4.296876898689107,0.0031280587896531653,3.213470464169495,4.09504320479016,3.0717947562934023,1.8115419556375705,2.6976045878304395,3.0054533077814227,0.47591287113267433,0.6232140973913125,0.7574903748094275,0.2705407900713991,2.348898366905643,3.6773705015745244,3.7068625475214434,2.273785874659484,4.125937207108321,1.8934475086272673,1.0913840062301505,4.025839951744563,3.80656336605854,3.0489817905908105,2.897981816561095,1.7201060709199685,4.004160334657005,4.2202900051759045,3.9645569095075928,4.040215461328573,3.8562502676391697,1.279064195083906,1.3752469377125327,3.03046748831287,0.7685303917142811,3.501722138528034,0.7333467313198022,4.460773833427913,1.3745960999078888,3.747302332726472,2.2476540843860766,3.482960775391595,1.4273439938098003,3.8327733640317567,1.0846470694087007,2.5501029448776347,3.1522604794182407,0.852648956550176,4.523292376758896,0.0651963269778838,1.213573312119041,1.385938721458957,0.2367221460311092,0.7958686532513565,0.939341171289968,1.5855101937177514,2.8064612563480162,2.5718096444045697,3.2786396741174633,2.2523949674159613,1.4503687527970892,4.629917705922685,1.877503105592091,4.152251377897156,2.9058787446041885,2.9972850969653253,2.6314036720329304,1.606018754708873,1.5105444505907633,1.0562715717538769,0.3113659800946744,3.473735066828421,4.959911465194083,3.5878883842180915,0.28836338803285955,2.1169868315779654,0.45529943826176145,0.2255655813381735,1.91187960849251,4.350929169121367,1.7799894269751375,4.591867483776274,1.696668933087417,2.014821535389921,1.9004544681804818,3.2499564351431864,3.8239153656038956,2.516821511464495,1.3409507748087635,0.38064319916426836,1.2268691361971533,4.580508777435843,4.879703280977225,3.3273375654420914,1.6058060140377757,3.6908457595452338,3.1214672752148784,3.4010635994987526,1.6137813817083484,4.973811661786856,3.2043206451610335,4.728220103239405,0.05052899250679366,0.2769326200419181,4.008120197143599,4.358176548438059,0.9160298953617235,4.029644750057949,4.660732457893182,1.1340728538549034,3.8184126633691213,3.531415168308107,1.2423030135370343,0.044435223992698725,0.9300730769440996,1.8021102556122943,1.8415659638435888,0.9914405779069863,3.8248786576244576,3.1445391249686323,0.054624148585701304,2.9703505547915388,0.7055437954112065,4.48441089169335,1.8707246120569243,1.0496053873252071,4.997393689475539,4.166910279792741,1.7417934709014253,0.8695450106944147,2.407608099763578,1.6740695078956263,3.4888382933906206,0.8218267216648162,3.7227472154042207,3.079988472992457,3.64147885346226,0.014726994032955298,1.1546377704595134,4.044127887172375,2.0170963448098522,2.3293576992498313,1.2104016742209844,1.676253726711373,4.134741290401286,4.413749416421243,3.851397006976691,0.5946946899141331,4.2835766623061735,2.3610291439238518,4.513695829580918,2.313353395492852,2.88747934393462,1.9565206287744967,4.346206948614309,1.407670620183961,4.450557497605038,0.2585238823911773,3.151440421077244,4.07238316633646,3.9490168272727013,3.126978005952216,1.6433142527617033,2.0446097638103726,2.732102151868616,2.5481713330003384,0.7672355466860831,1.0312593324653991,0.20048728814407113,4.406950678884074,4.204990883194512,1.8019272680689624,4.381263359085954,3.8390706443555045,0.782623993766095,0.24673649312815626,0.6980693238187818,3.4126382641181143,4.246291567745136,0.9071729834924597,3.5739952688831527,3.230628254113931,4.857072604507359,4.124090334866738,3.3956497884871317,2.012204494222331,4.449895664969244,3.6088097186056345,3.940687581189994,3.5284995243858965,3.6683895212310853,3.2176198979377695,1.769203142587823,4.364244027680205,3.777538554083102,2.176511147018438,2.032361456245306,1.5687647225619938,2.2072651283687565,0.21840328243396767,2.9850010436271406,4.521000942147456,3.9505479652399975,4.4585312589681205,2.4071698336574627,4.525667213132662,3.2039145740433685,0.2380316026575663,4.484152339665512,3.9477281923684506,4.294827991878175,4.071168115699438,3.8447575043959654,3.1617677358379943,1.3473367618597472,4.405913746286907,0.1611783251771609,2.0966126230342548,0.9393589852424766,4.9568814055640305,0.42463419045609074,0.05078634147459182,2.790828824061154,1.8609217032389558,4.212403128602814,0.06572110587252822,0.003051768609824146,1.5299823143917712,4.646715146269199,0.412115517763586,3.7674626600359784,2.7554167103777756,1.3436169405314502,3.91615337035513,4.195150133406862,2.911398082171972,2.7858632619388297,3.4800763709709144,1.689481273138786,1.5746411646055292,3.0865081373393903,1.635904649026666,4.317324016292995,3.363158905335828,1.2534600345693891,2.042142367876696,1.4931728826051283,4.976739039725887,0.9901937365133784,3.10347189372999,0.24034522889960608,2.789459165998305,4.847409024224211,1.7073473460087536,4.095248870332371,1.4638821889252913,4.651616749801727,1.783738307159151,0.281760222202575,1.4882020300057826,0.7713196342416345,3.8475931222922943,3.1396953921728428,1.5813113032428587,1.972198692070195,2.948299875447507,3.1746521549041873,1.7350154029554576,0.5025931003956191,0.77202721760677,2.6533567590993252,0.9280776143448227,3.0124482494532545,4.266024297282697,2.941253053262967,2.168418025110044,4.329605272971169,4.512647822533721,4.744666885075813,3.8605795079567096,1.2918413021625752,3.6484748230797632,1.859154417717469,0.23607377712501487,2.8943897828674707,4.105880857957064,2.5429213762112117,0.40714766921641776,2.2988987397110967,0.34573886995181935,3.5341324972591748,3.348526282678365,3.7736167193105863,0.8017657333259959,2.8615059056258367,4.591485203882733,4.585427189306486,4.2250916338874225,4.124839105174928,2.7822616357678505,4.5487377215208955,1.505659678369644,2.425217016892123,0.040649524613529664,2.347352561175069,2.8260183990629786,0.6748127725295,1.5703485851178922,4.634812367057392,4.3101265870597985,2.690383635503932,0.21262710424829856,4.222553026910894,1.8520021935050663,0.6522782424218548,0.2818279999297718,2.805468512911008,4.760613794571085,4.625802126168107,1.280874294722949,2.7545022836196447,4.726818189411684,3.2496074685728082,0.523930306954824,4.949778919062689,1.862158862938807,0.3580907226803337,4.0665130661051,1.309504626408381,0.9989266125251561,1.4237304493826874,3.292520548893169,1.3394196208130194,3.63999142208693,2.8258790327439494,0.6257936704671635,2.5789796228769997,1.3583583380236108,0.6881188372007274,3.124725379962385,4.6569580558766965,0.5221209794365927,3.6847538204748727,4.095264810376507,3.59383208899063,4.634297504778649,3.0815091198451334,1.5020749745770567,2.6089595540775115,1.6411714939849316,0.5384904011395547,3.5339987281854377,0.13643703138493835,0.20989076102484017,4.640995158401614,0.24488083306540398,2.500070294890885,4.270041632397701,2.949842921936676,1.494595418592558,1.4118769440596117,4.053686892550745,4.331515491623143,1.414976517345556,0.8294086527177752,1.3933189635090866,2.757811922135365,3.804204889608349,1.4377770098877662,1.3904897405419225,3.5077617665876564,1.6782788931528652,4.054217933186114,2.026023401482595,3.6563139238192277,0.27844719965684883,3.819597517757565,0.07258703468734917,2.819591457769517,1.0910695673569077,4.217259116199788,2.8383046378454386,1.9620979732449855,1.2916506799720229,2.5334513756744026,1.9505093588611022,0.9152640163616765,0.8777233267014833,2.2581856341496804,4.635067198145812,4.1066406300745575,0.7880816617493591,1.6379894256948124,2.0128615124175546,0.8392700229160466,0.3092021913487464,3.5175438635303995,3.2008769915782898,4.018657708271794,4.769689398793618,1.5437364235966244,2.4403670473275496,4.977273121970186,0.7143382369220563,4.7011501329620415,2.377077542893544,1.3395389053770006,0.22081573292937862,3.3500667352737197,1.5721199448682943,4.2756341218258775,4.1373589521938845,0.33109650175499605,1.3735612736644902,0.5880060498444545,0.29488430744507965,4.615638787846458,1.1382923810372665,2.087600758963031,2.5563165809992587,1.5518936260663634,3.170249612198747,2.3023787593154177,1.5270936504942234,0.6438989437841575,0.45759354892132953,2.069840845737481,1.2201104560961888,1.8458176964288386,1.0460514571429376,0.3367481313478027,4.325269519964366,4.835323891670608,2.4025292843692214,1.6976423448752547,4.847567279118342,3.5173455350801803,2.648688186954739,1.4178574561431223,4.645835396651569,4.284621275063699,1.1742369402005381,0.08608049170184373,0.4346616883611054,2.2915599565125824,0.506856327384409,4.4880872245363035,1.5049025442855872,2.429962462138212,0.054821911615883234,0.8001696925711682,4.847707276642759,2.9977654780057934,0.6311070357901699,4.4948530804908104,3.1214893387867857,1.372008504059009,4.688893182941102,2.1773687292056194,2.9464315310857154,2.032345164273683,0.8162208957185513,3.843709429877199,2.6093661329538747,3.215016327339169,2.7282500578186357,0.3519855199976696,1.4801788237464213,1.6164689757231794,0.20980701489277942,1.7513961100565167,3.8123856972053227,1.29962470425108,1.2972077836476237,3.5397391403803553,3.4924511049493647,2.795345149502661,0.5483527695029089,0.21754569118235423,4.582576909700167,1.6631293082090277,2.5034983149020213,4.601347395331701,1.8672412220345684,3.3618639570635866,0.632065134235662,3.535020256019169,4.121671014430111,2.386558914189092,1.0419476069089355,1.1841788588792646,3.820839411046439,3.6110393568031784,4.795862638488248,2.074219622534909,2.6867879562975876,4.416191453204109,2.440451359866665,0.08498492899529364,2.8164508255404135,2.976289383453924,0.20896607165082515,3.348378210590772,1.697083080622706,3.9930890866065627,4.898095185522563,3.580832740516282,0.8082371227402951,1.7696948032555482,1.08941387231773,1.8009130523779744,2.210553022772121,2.5784165896108795,2.3254429013175,1.485540089384867,2.613143472788761,4.715398444578793,3.8158531418018784,4.215675678121904,2.6444064228065134,4.080440822142256,2.1204749017345255,1.7196915494087706,4.9065017278707055,0.9753131806503756,0.8472326278327652,0.9216647783546505,4.194392848831149,4.280038075992783,0.1472813711547838,0.0195325456523765,1.425666551987681,1.8683006632884132,3.945752234876342,4.6581893072296054,3.0717588835053804,2.0231935417679594,0.6177176903040171,1.2677130902986533,1.7633577599979366,0.3684889105538275,1.4096543559686636,2.717871424499692,1.4152565738786071,1.9815975308684193,0.4371846898554371,0.3372449514238879,4.675841372355835,1.7545708359251173,1.1830250405692,0.863581553621165,2.4319326010816344,3.5515556388341247,0.6280550070445751,4.247887120605171,4.288360410418854,3.004634876512999,3.8090943365144767,3.944718734716025,4.960444700980408,4.017840944473509,3.9194247847072994,0.7815871874520258,4.2324081853738,0.18602989428325056,4.940988874832445,2.777046847643636,2.544654497810836,1.7353337696318671,1.5381631560970317,0.242227353798512,0.21235341384228001,1.0985204701585027,3.3601030760115447,3.6775735556039955,4.06857353521948,2.0734604300589043,2.371902193712987,1.1000341870320023,1.2263568370327826,0.11280654151138547,3.686960567753132,3.11447414002408,2.885054173456238,0.25439000232662323,0.33591330956343424,1.072214319820567,3.8885448900833097,0.8149528233881215,2.1444998748801716,4.447395358108298,1.084588196276684,3.3073635146089564,1.3420877915304015,2.3960380644987564,1.174879815743683,1.996673846749701,3.7269945329609837,3.161762110355319,3.4345539281261894,0.7754406521062557,0.8030930188455193,4.299979664452191,1.3014524591443806,2.602237939223086,3.1263924392796976,4.408319927675699,3.0938730771844485,0.9137432628872721,4.927339065774536,2.100977783916997,1.2886971504181544,3.007438081204676,2.8853846493807076,4.503914064949851,1.7052233854818395,3.922305462148432,2.6668808546841842,4.7271540832147405,3.00963165062515,1.2056337723193689,0.15752909421185735,3.1146961706765195,0.5261807460364198,2.8492000993553113,1.2060307627376825,0.3111882408755051,2.1600946460765726,1.0714003721350092,2.992787984925145,2.625900784862296,4.83520186462632,2.4316616591994995,0.18425181316316763,3.7202327742996832,0.23346652437359006,0.9540364264905571,3.4954984613521582,4.608255853272095,3.0194169510813405,2.0323510288701945,4.78142654857868,0.5662893050215329,1.1871347851215586,3.6464936735248186,2.638898612184837,2.2917908924194257,3.8809436196730154,0.19806603061935824,0.11029553335721642,1.7113772424706553,4.27354772499981,0.7251783928900302,0.04647996066911464,3.054348712682038,2.056562942870591,1.9322072645832933,1.4071023165751466,2.1524191835342483,1.9025082482763944,3.5947787950372883,1.7348021079531146,3.7323773826064457,4.840868340704316,1.5309756558521492,0.1605101867849179,1.7249036967604214,4.774769519060131,4.485409552640208,4.326437618098639,3.0737432088715755,3.2232026851864477,4.415491665004279,0.7800516661536316,2.300637610157994,3.682570877015672,1.2985931511894404,2.1286062931519556,3.658739010987659,4.077917173480804,3.0165974818471004,2.242268403679357,2.2678234985025467,3.823116837549318,4.8313154892827725,4.413498213248632,3.1785369530681757,1.0392758806944453,4.323135299319594,3.301785836383077,4.656197217992977,4.320173977457912,0.2013022451567692,4.965717571769464,1.8527793810513493,2.70880550862912,2.896116766978431,1.992199583475086,2.7763802257373786,1.6780417809024584,3.279675668815747,2.7980323090549963,2.165744528558972,3.3636986900337313,1.6063923523517625,4.23715080931991,2.9642764037655227,1.3112513095255203,0.2717867506728827,3.0978077935722097,2.599479907694616,4.833265245791475,3.3468789137025863,2.24163002570201,4.3950931007941785,1.5039378638417378,0.6690771786549621,0.838741370987347],"expected":[2.0781208309254757,2.011678990518882,1.8210454563607041,0.49938141755271753,1.068854234890587,0.7017991605713643,3.0359881530419983,2.9171940978575615,2.74375595350336,2.7722773506628124,1.6015695382894877,1.7623302656354431,2.9120340010829238,2.6446647712346123,1.4348038028650116,2.747233875158449,3.246823241542164,1.170047708143243,3.2599297186662426,1.027920036741067,2.497947750536029,1.369870065648417,2.1421855524268,1.4060824966948373,2.572262533109308,2.885992205062975,1.860060814964951,2.205101390647111,1.3113104427199243,2.981677958495108,2.2726605208391426,1.7794689570662634,2.4485828780091414,2.168812076575506,2.671521132384382,2.943681484099437,1.7771954272869837,1.0643159794930408,3.016493230755638,0.7760813326004883,1.2903534371670737,1.016228499749791,0.5491700608388,2.136416156836808,2.713231045148295,1.042052402459615,2.8351673754571243,0.2738683884734971,0.8053016956349224,2.9899056772996992,2.634110958740604,2.202202596527589,2.7909244915547746,2.4570962175755886,2.4756162627459766,0.7297295462056509,1.849992098890133,2.4543771774170025,1.9889774429064038,1.5294262702461503,0.5570032487236979,0.873636825278177,0.06896068879728474,1.8771383458853768,1.2852339859197588,3.083246680431312,1.175261299060669,2.7562175299168663,1.4383132388840263,1.80831726765739,0.21266904624532687,1.370860390156999,0.23832874018270483,1.5563722896352505,3.232940057576717,1.6066848389863193,1.711153874207963,1.994856842250246,2.9895778873733954,1.757631139296562,2.7385524612539247,3.2405653093047,2.0900802672198573,0.8622763597362073,0.9172501282741088,0.7736972863408028,1.3796977797596024,0.211305282786438,3.139701672957108,0.7911230484893029,1.6216104589276996,0.7364109070694587,0.049150820255304935,1.525627632093933,0.49565227773237686,0.28844555527890614,2.385790952764815,1.146128771056475,1.4287499183684544,3.3468391551847794,1.7899943455431107,1.4967592873443594,2.338558327601185,2.9151043903988216,3.030826102200204,1.612686059738797,2.5700849933006555,2.2577662470683673,3.153045944734393,3.027618007045719,1.902538924665585,3.096408816004386,3.151410124337959,1.3059167863971044,0.17702331498279708,1.131137132639966,0.8784050431332664,0.5735940543981423,0.15896813018378686,0.4825484212203646,1.8653103866138816,0.4489627150920193,2.8865094857817173,0.46343010396610296,1.9061536613432422,1.3371095865351466,0.7282601621830154,0.12328941185289742,2.061941119336248,0.5751934375801971,0.14448514363119414,0.35765396422319207,3.2085256202957626,0.8438332166162473,2.86012567004217,3.0259991508271704,2.655684959649952,2.6844831372654303,2.421496737346958,1.5395019540100259,3.046887490696209,0.8601862960953006,2.7963141113790186,2.401765405849194,1.7820500011823808,1.5736639425397363,2.195101111005166,2.6490454646814103,2.3981412639336703,0.43222662900204456,0.6579202571869238,0.224539652462928,0.25138888327342546,2.8338186087341155,0.6370897255833634,1.3810143779839814,0.11429830746442139,2.4599899779624637,0.7886788965649888,0.8763176110376825,0.8063563354348607,1.1219589535644432,2.3785149784584827,3.0303515457364103,0.543766241419945,3.3680615552065922,1.6107713646980388,2.5817565925103922,3.211720222389358,0.2588438504750504,0.7012716991006408,2.350875764535475,1.4459880447786762,1.4485850228477823,0.4959553247889751,1.263593427974492,3.2894799449791354,1.6200606108306495,1.8974901641653918,2.9746102478418757,1.519111154754104,0.42233919182491825,2.048901623314853,1.8106097099117593,0.6923423782539466,1.899225218374918,1.9982123194852057,3.0074814075615937,0.8911055093783777,1.0663722293818954,0.7577688876990004,0.21536195217417556,3.089435185130637,1.591861806205852,1.072536140356968,0.9506539752529495,1.6005661175749601,2.8547968876001812,0.696239567390177,2.117506741369516,1.529941168863808,0.8992409976344112,2.823148020889497,1.460080535582095,2.0054702856691717,1.727289210644857,2.4256383405952318,2.3548149162911596,0.49787951714751383,2.6406022729001193,1.2525234208118539,1.295914182846699,2.694559524591977,2.376975576857324,0.898563206067631,0.8803546670462664,3.0050163861518966,3.2651817561122476,2.7153055163446207,1.8831325352841652,1.0265381115722678,2.775274900767128,1.1492629370569258,1.417604055329125,2.5486910260501747,3.012012552136138,3.068410022212947,2.48401098831516,2.3564659471868796,0.8602277853245277,0.0012420722209918265,3.0765788259538445,2.236564038525292,2.9123965884457585,1.9337865950236668,0.8748198708563542,0.2975591966895447,2.5648587591550234,1.06052294746905,0.9921645785404639,2.1694004681615513,2.8618181618968523,0.29870273350164955,1.7459092074668836,0.006039896954394174,0.34422473905166884,0.03151800351171994,2.688876874067732,2.0689095608869943,1.5226061845184087,1.9438403976383825,1.9044347309025604,2.7643610837033403,0.5056863471519829,2.235984557814273,1.842654238156046,0.8661828751742785,0.0024042369957986347,1.151744869477799,0.06437620941433672,2.2776220808755245,0.6460056998648863,3.2565777613268287,0.3806492166725871,0.9632920099872924,0.5132082477274199,3.0601063866892715,2.9834832208439788,0.41437680781493186,0.4228365669172007,1.04317139280349,2.2175370719504603,2.8603389854376435,0.2496625403380231,2.1782723955352297,1.3483701073953602,3.140966089222473,0.6319923456371627,2.9797581417704215,3.0500455854112314,3.2164270526861087,2.7176634190056412,0.6052926558027082,2.8798009900706116,2.8981994260201307,0.0021098435916318214,2.1674528906401695,2.7620646682410777,2.071894077825971,1.2218664811277065,1.8195066445735575,2.0271474507914795,0.3209983535653776,0.420351520868143,0.5109194936811471,0.18247698991310857,1.5843078727301716,2.480348710985441,2.50024079368895,1.5336452665984548,2.782902356147211,1.277110937103399,0.7361273257301733,2.7153877833815963,2.567487973878381,2.0565069662879982,1.9546590315250802,1.1601939140855733,2.700765103867863,2.8465423513461166,2.674052999531926,2.725083917249856,2.6010012797135174,0.8627156894268961,0.9275899634756527,2.0440192591694952,0.5183658719254624,2.361875690471863,0.49463485361500653,3.0087462285900113,0.9271509800473803,2.527517014309873,1.5160196419047678,2.3492213433366285,0.9627288938286499,2.5851663488639756,0.7315833308963867,1.7200182982648085,2.1261673833157904,0.5751029817084781,3.0509143452639487,0.04397425429701492,0.8185427601358036,0.9348014620239289,0.15966666114240324,0.5368052491203995,0.6335759919722654,1.0694103744940273,1.8929293517291554,1.7346592446063123,2.2114088547784507,1.5192173189153035,0.9782588577663115,3.1228320368962077,1.2663566006831772,2.8006509946291893,1.959985428548183,2.021638076318581,1.7748548054145437,1.08324318867381,1.0188467491390416,0.7124443485714951,0.21001316213361512,2.3429986974724715,3.3454094451534395,2.419993940002684,0.19449814955997924,1.4278859191994167,0.30709480437759185,0.1521416726096186,1.2895431995370958,2.934657128401517,1.2005846239521274,3.0971675520657698,1.1443858048435844,1.3589764740948338,1.2818370595020807,2.1920623040878766,2.5791917197171306,1.6975703125558124,0.9044575531260052,0.2567399363181448,0.8275106571969006,3.0895062210636617,3.291309847017329,2.2442550833330754,1.083099697271705,2.4894376343679325,2.1053976827049277,2.2939825376269005,1.0884790010195518,3.354784985280975,2.1612814315028133,3.1891359963060384,0.03408128753356694,0.18678821371321977,2.7034359905272565,2.9395454114664084,0.6178527752946719,2.717954080845539,3.143616271255143,0.7649205159007514,2.575480203461394,2.381903334710789,0.8379206492684339,0.029971103130742305,0.6273247573321269,1.2155048961337336,1.2421173669224688,0.6687165077267422,2.579841450311445,2.1209594088818986,0.03684342833424333,2.003471003696138,0.47588205831930014,3.024689182114836,1.2617845762719369,0.7079480755014407,3.3706908212458315,2.810538273706891,1.1748218430814688,0.5864991970475251,1.623906985779599,1.1291427241913985,2.353185668983564,0.5543137002001667,2.510954839361152,2.077420655755494,2.4561401622160743,0.009933206526427207,0.778791341364198,2.7277228083799034,1.360510809732227,1.5711278926843386,0.816403522882231,1.1306159573948051,2.7888406200881883,2.9770287413100665,2.5977278051416457,0.40111547284312,2.889228552904657,1.5924899574908677,3.0444415725551295,1.5603331538412315,1.9475752213868078,1.3196531101555913,2.9314720390713407,0.9494594049662435,3.001855414792921,0.17437170885374642,2.125614262370225,2.7467807045650074,2.663571373347288,2.109114614103352,1.1083986198389022,1.379068328840928,1.8427748979240406,1.7187154458522151,0.5174925122258505,0.6955738495419651,0.13522662089778442,2.9724430625269727,2.836223250382668,1.2153814729113426,2.9551172286131315,2.5894137998964553,0.5278718620527534,0.1664212356142674,0.47084060384207793,2.3017895302746174,2.864080138788145,0.6118788790204633,2.4106231761109758,2.1790256440937092,3.276045687698401,2.7816566597503414,2.2903309775900635,1.3572113066514533,3.0014090154637327,2.4341051656075066,2.657953382237641,2.3799367627700367,2.474291131797079,2.1702516411859882,1.1933093856901835,2.9436378640247636,2.5479110356995793,1.4680344598514536,1.3708069709310413,1.0581157258372649,1.488777705049965,0.14731077541089116,2.0133526082511137,3.049368796105288,2.664604110212365,3.0072336351028297,1.623611379783166,3.052516148056447,2.1610075406960974,0.1605498762152749,3.024514791422167,2.6627022023126257,2.8968174593770497,2.745961165364367,2.5932495287045456,2.1325799303234,0.9087648359367786,2.9717436621185387,0.10871312828576611,1.4141437243683264,0.633588007300643,3.343365700990486,0.2864114090454441,0.03425486677457035,1.8823854363810324,1.2551726147521103,2.8412227339365055,0.044328212282571805,0.002058386647296532,1.031957389038529,3.1341617382394618,0.2779676926282901,2.541114948440733,1.8585003286688153,0.9062558545782816,2.6414053085003757,2.829585765516654,1.963708165165525,1.8790362156255629,2.347275842119459,1.1395378018803382,1.0620793257632508,2.0818181025322193,1.103400918066605,2.9119907972650068,2.2684162099296907,0.8454459455974793,1.3774040955739877,1.0071298045878962,3.3567594716958014,0.6678755259866335,2.0932599823425018,0.16211039340131542,1.8814616160563673,3.269527701847221,1.1515882849073875,2.7622033875412675,0.9873735319247132,3.1374678195816768,1.2031132052109577,0.19004438188860734,1.0037770154599022,0.5202471874209733,2.5951621239110922,2.1176923607584497,1.0665782659065164,1.3302278031514652,1.988598046493728,2.141270338920778,1.1702501057257808,0.3389938947361154,0.5207244451481664,1.789661937625989,0.6259788382620151,2.0318654672523495,2.877389662604622,1.9838450371588017,1.4625757320771544,2.9202743790139625,3.0437347025436625,3.200229182078407,2.6039213079338337,0.8713337171886164,2.460858872015763,1.2539805987821977,0.15922934296089677,1.9522362416163719,2.769374554218334,1.7151744038089767,0.2746169297026986,1.550583636673825,0.23319732402687826,2.383736145236196,2.2585466559287446,2.545265798343555,0.5407827691868293,1.9300564034701835,3.0969097081958705,3.0928236394576536,2.8497810006962827,2.782161697648467,1.8766069556891993,3.068076969496123,1.0155520203438542,1.635784019894855,0.027417687702169104,1.5832652426091052,1.9061204440335195,0.45515429837254784,1.0591840248969377,3.126133435662251,2.9071362050194542,1.8146361862426734,0.14341480242935115,2.848068736310838,1.2491564968598279,0.43995498878945616,0.19009009727089315,1.892259756456319,3.210985209080272,3.1200561205356308,0.8639365830802643,1.8578835571931511,3.1881904197985826,2.1918269297129953,0.35338562185811573,3.338575146644425,1.2560070662890157,0.2415285220881927,2.742821382126331,0.8832474483468024,0.6737657613463107,0.9602915951506842,2.22077136253842,0.903424805449904,2.455136904999294,1.9060264428798117,0.4220914164676863,1.7394953215950928,0.9161987760903101,0.4641291026087369,2.1075952409621856,3.1410704757819037,0.352165248992321,2.485328683906155,2.7622141389376544,2.4240029079499528,3.1257861663324764,2.078446316471292,1.013134174378265,1.7597164779014216,1.1069533510068268,0.36320625614760615,2.383645919367067,0.09202537921632203,0.14156916697210994,3.1303036650515295,0.16516961192209273,1.6862717886735976,2.880099313962795,1.9896388155347489,1.0080892905307028,0.9522965273063749,2.7341702595296833,2.921562801915352,0.9543871577177259,0.5594276349820809,0.9397793596407075,1.8601158744488586,2.5658972056866483,0.969765856236869,0.937871077748336,2.365949357693075,1.1319819114020326,2.734528440995177,1.3665320179574116,2.466146265115287,0.1878097821393465,2.5762793756018745,0.04895921089374447,1.9017855380059676,0.7359152399331078,2.8444980477977437,1.9144073861607505,1.3234149718342487,0.8712051444749289,1.7087869855125477,1.3155985702133446,0.6173361977592497,0.5920153873681574,1.5231230642739986,3.1263053166194217,2.7698870127240682,0.5315530031674383,1.1048070785607176,1.3576544586898238,0.5660790281037041,0.20855370880289703,2.3725472818163795,2.1589587224580264,2.710543433775801,3.217106611105207,1.04123439472028,1.6460025601387087,3.3571197046953434,0.48181381897706727,3.170877578815844,1.6033144381029822,0.903505261665666,0.1489379485429013,2.2595856754149746,1.0603787888924938,2.88387139076018,2.790606206136776,0.22332119675952386,0.926453000352974,0.3966040536733709,0.19889644286537636,3.1132010530099032,0.767766543735929,1.4080653144221258,1.724209332140292,1.046736344176393,2.1383008689911582,1.5529308742274208,1.0300090148478713,0.4343032377444973,0.3086421585032861,1.3960864349871203,0.8229519967439458,1.2449851169717945,0.7055509860205873,0.22713316299177677,2.917349958051492,3.2613764038100546,1.6204813768529673,1.1450423611172011,3.2696344431512308,2.3724135113095346,1.7865130335664148,0.9563303214076266,3.1335683561396315,2.8899331335025322,0.7920107804668725,0.05806040934473247,0.2931748536024891,1.5456337026275158,0.3418693976428135,3.0271688309357176,1.0150413411646337,1.6389847740734584,0.036976817471068756,0.5397062560568028,3.2697288700465026,2.0219620884065654,0.42567522691710136,3.0317323314283358,2.1054125643580317,0.9254056731696609,3.1626103916580544,1.4686128902466584,1.9873378673718631,1.3707959821631712,0.5505326280580278,2.592542613184196,1.759990711186175,2.1684955595033206,1.8401766999705373,0.2374106254558661,0.998365445074254,1.0902917556352436,0.14151268106441642,1.1812987247664093,2.5714150765591333,0.8765835421189677,0.8749533539448986,2.387517768554439,2.3556224733493267,1.8854316515998788,0.36985832252134665,0.14673233890182005,3.090901155077998,1.1217636716376895,1.688583953034576,3.103561655242671,1.2594350654059225,2.2675427805930295,0.4263214544982646,2.3843349294204583,2.780024852913397,1.6097095258596328,0.7027829811014131,0.7987165027129564,2.577117019896057,2.435609033718396,3.23476019300866,1.399039875055382,1.812210937473001,2.9786758700897114,1.646059428082155,0.057321463528467356,1.899667213758302,2.007476682757088,0.14094547346722158,2.258446782823373,1.1446651431112058,2.693297660535961,3.3037149981197445,2.415234980644778,0.5451476550163016,1.1936410057711389,0.7347984905997319,1.214697394823283,1.4909953561247615,1.7391155614280753,1.5684874016048922,1.0019815637954639,1.7625384881878132,3.1804879189589426,2.573753832398883,2.8434300350441406,1.7836250275356795,2.752215510816625,1.4302385867679812,1.1599143235750347,3.309385124768156,0.6578387435798179,0.5714497235048918,0.6216534461169554,2.8290749848323538,2.886841812706091,0.09933977523872653,0.013174501837764988,0.9615974765130803,1.2601496476725758,2.6613694392373755,3.141900942199356,2.0718698819981394,1.364623306585397,0.41664425062485716,0.8550594855958416,1.1893667350473307,0.24854199322947743,0.9507974144201226,1.8331764181758663,0.9545760529787444,1.3365672235846127,0.2948765922501453,0.22746826304078788,3.153807079196792,1.1834400448244629,0.7979382640892293,0.5824769063758838,1.640313612597259,2.3954878756447147,0.42361666481089383,2.8651563228381347,2.89245514197418,2.0265954272896876,2.5691950875089593,2.6606723539724157,3.345769107225753,2.7099925349655263,2.643611843949558,0.527172546820975,2.8547159396806263,0.12547525692411318,3.332646351907355,1.8730896345499726,1.7163433765637668,1.1704648407858231,1.0374752829167038,0.1633798673542163,0.14323020105576462,0.7409407975024909,2.2663550843721127,2.4804856688470553,2.7442111474245765,1.3985278075118908,1.599823718127011,0.7419617840183652,0.8271651166614986,0.07608685600449833,2.486817112326614,2.1006808846969984,1.9459394687566614,0.1715834491216648,0.22657008425497985,0.7231975687324359,2.622783671538542,0.5496773262686456,1.4464431849034556,2.99972258411368,0.7315436215722795,2.2307827907762303,0.9052244592505516,1.6161031155840697,0.7924443934313754,1.3467360441172556,2.5138196115190166,2.132576135992996,2.316571421016805,0.5230267717310352,0.5416780096653315,2.9002922097245896,0.8778163440603697,1.755182817577346,2.1087196553846823,2.9733666068023914,2.0867856789685217,0.6163104651281889,3.323439695605662,1.417087980641693,0.8692130190639434,2.0284861601219255,1.9461623713804026,3.0378438725726444,1.1501556953021628,2.6455548313572232,1.7987838014786486,3.1884169767258985,2.0299657002123785,0.8131876219196509,0.1062517594035707,2.100830642096298,0.3549035199520928,1.9217562632728153,0.8134553878877295,0.2098932788520776,1.4569616982320812,0.7226485693613314,2.018604820341996,1.7711431644214652,3.261294097819436,1.6401308650748603,0.12427595943360008,2.50925887460867,0.1574707777038902,0.6434877909815784,2.3576778840082055,3.1082213393131277,2.036565785072668,1.3707999377734073,3.2250231983317477,0.38195633188268646,0.8007102446657193,2.4595226069473477,1.7799100657253375,1.545789466529634,2.6176566925583296,0.13359350751478044,0.07439320674185251,1.1543064087652917,2.882464137486156,0.4891253930679925,0.031350257060834844,2.060126900228632,1.3871306255993037,1.30325399521584,0.9490760900070987,1.4517846774192695,1.2832223131259304,2.4246414514748724,1.1701062404329325,2.517450288431727,3.265116077853775,1.0326273876719987,0.10826247578848572,1.1634298635402347,3.2205331001547335,3.025362768687413,2.9181378282702823,2.073208289118692,2.1740171739627474,2.978203870121617,0.5261368534440004,1.551756486967176,2.4838563109176666,0.8758877701521084,1.4357231269338702,2.4677819615537255,2.75051333566138,2.03466408197318,1.5123870554702568,1.529623704993787,2.578653120729074,3.258672777484798,2.976859307344923,2.143890595463969,0.7009809291544093,2.9159104481019362,2.227020703982983,3.1405572984277743,2.9139130668592004,0.13577630104969968,3.34932560452708,1.2496807018937757,1.8270615508450256,1.9534010746979662,1.343718199398849,1.8726400049069458,1.1318219816194874,2.2121076225837006,1.8872441131750706,1.4607724860562719,2.268780289175739,1.0834951764546366,2.857914790921312,1.9993740510879472,0.8844255682061534,0.18331737756795743,2.089439604841995,1.7533225535806753,3.259987868265296,2.257435522439791,1.5119564760677853,2.964445247643188,1.0143906740930426,0.4512856990928846,0.5657224577963749]}
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/runner.jl
new file mode 100644
index 000000000000..148a047d4e2f
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/fixtures/julia/runner.jl
@@ -0,0 +1,60 @@
+#!/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
+import SpecialFunctions
+
+"""
+ gen( sigma, name )
+
+Generate fixture data for the median of a half-normal distribution
+and write to file.
+
+# Arguments
+
+* `sigma::AbstractVector{<:Real}`: scale parameter (σ > 0)
+* `name::AbstractString`: output filename
+"""
+function gen( sigma, name )
+ c = sqrt(2.0) * SpecialFunctions.erfinv(0.5)
+ println("c = ", c)
+
+ expected = Array{Float64}( undef, length(sigma) )
+ for i in eachindex( sigma )
+ if sigma[i] > 0.0
+ expected[i] = sigma[i] * c
+ else
+ expected[i] = NaN
+ end
+ end
+
+ data = Dict(
+ "sigma" => sigma,
+ "expected" => expected
+ )
+
+ open( name, "w" ) do io
+ write( io, JSON.json( data ) )
+ write( io, "\n" )
+ end
+end
+
+# Generate fixtures:
+out = joinpath(@__DIR__, "data.json")
+sigma = rand( 1000 ) .* 5.0
+gen( sigma, out )
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.js
new file mode 100644
index 000000000000..3661f061ecd5
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.js
@@ -0,0 +1,91 @@
+/**
+* @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 abs = require( '@stdlib/math/base/special/abs' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var NINF = require( '@stdlib/constants/float64/ninf' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var median = 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 median, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', function test( t ) {
+ var y = median( NaN );
+ t.strictEqual( isnan( y ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided a value less than or equal to 0 for `sigma`, the function returns `NaN`', function test( t ) {
+ var y;
+
+ y = median( 0.0 );
+ t.strictEqual( isnan( y ), true, 'returns expected value' );
+
+ y = median( -1.0 );
+ t.strictEqual( isnan( y ), true, 'returns expected value' );
+
+ y = median( NINF );
+ t.strictEqual( isnan( y ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns the median of a half-normal distribution', function test( t ) {
+ var expected;
+ var delta;
+ var sigma;
+ var tol;
+ var y;
+ var i;
+
+ // Test cases (sigma, expected)
+ sigma = data.sigma;
+ expected = data.expected;
+
+ for ( i = 0; i < sigma.length; i++ ) {
+ y = median( sigma[ i ] );
+ delta = abs( y - expected[ i ] );
+ tol = 1.0 * EPS * abs( expected[ i ] );
+
+ if ( expected[i] !== null ) {
+ if ( y === expected[i] || delta <= tol ) {
+ t.strictEqual( y, expected[i], 'sigma: '+sigma[i] );
+ } else {
+ t.ok( delta <= tol, 'within tolerance. σ: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ }
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.native.js
new file mode 100644
index 000000000000..96e8af2c060b
--- /dev/null
+++ b/lib/node_modules/@stdlib/stats/base/dists/halfnormal/median/test/test.native.js
@@ -0,0 +1,94 @@
+/**
+* @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 EPS = require( '@stdlib/constants/float64/eps' );
+
+
+// FIXTURES //
+
+var data = require( './fixtures/julia/data.json' );
+
+
+// VARIABLES //
+
+var median = tryRequire( resolve( __dirname, './../lib/native.js' ) );
+var opts = {
+ 'skip': ( median instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof median, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'if provided `NaN`, the function returns `NaN`', opts, function test( t ) {
+ var y = median( NaN );
+ t.strictEqual( isnan( y ), true, 'returns NaN' );
+ t.end();
+});
+
+tape( 'if provided a nonpositive `sigma`, the function returns `NaN`', opts, function test( t ) {
+ var y;
+
+ y = median( 0.0 );
+ t.strictEqual( isnan( y ), true, 'returns NaN' );
+
+ y = median( -1.0 );
+ t.strictEqual( isnan( y ), true, 'returns NaN' );
+
+ t.end();
+});
+
+tape( 'the function returns the median of a half-normal distribution', opts, function test( t ) {
+ var expected;
+ var delta;
+ var sigma;
+ var tol;
+ var y;
+ var i;
+
+ expected = data.expected;
+ sigma = data.sigma;
+
+ for ( i = 0; i < sigma.length; i++ ) {
+ y = median( sigma[i] );
+ if ( expected[i] !== null ) {
+ if ( y === expected[i] ) {
+ t.strictEqual( y, expected[i], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
+ } else {
+ delta = abs( y - expected[i] );
+ tol = 1.0 * EPS * abs( expected[i] );
+ t.ok( delta <= tol, 'within tolerance. σ: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
+ }
+ }
+ }
+ t.end();
+});