Menu ▾ ▴

Algo_Index

Bryan P White

Algo-Index (crvscience-algo-index v0.1.0)

CRV Science open-source Algo-Index repository.

Clone Commands

# GitHub
git clone https://github.com/bpwhite/crvscience-algo-index.git

# Codeberg
git clone https://codeberg.org/crvscience/crvscience-algo-index.git

# GitLab
git clone https://gitlab.com/bpcwhite/crvscience-algo-index.git

# SourceForge
git clone https://git.code.sf.net/p/crv-science-apps/code -b crvscience-algo-index

Documentation Overview

Polyglot Algorithm Catalog (GPL-3.0-only)

Self-contained, zero-dependency reference implementations in Rust, C (C11), C++ (C++20), Java (17+), JavaScript (ES2022), and Python (3.10+), harvested exclusively from GNU GPL v3 sources, organized along an information-theoretic taxonomy, and verified against shared input/output test vectors (vectors.json).

  • License: GNU General Public License v3.0 (SPDX-License-Identifier: GPL-3.0-only)
  • Source & Citation: CRV Science Apps (https://crvscience.com/apps)

Information-Theoretic Directory Structure

Folder Role Entropy & State Transformation
select/ Select (Search, Filter & Index) Isolates a low-entropy target index or subset via query conditioning (H(Y) << H(X)) without mutating source symbols.
order/ Order (Sort, Rank & Partition) Collapses permutation entropy (n! states to 1 canonical ordering) while preserving marginal symbol multisets.
measure/ Measure (Compare, Distance & Entropy) Compresses one or more high-dimensional structures into a scalar metric, divergence, or entropy summary.
encode/ Encode (Hash, Compress & Channel Code) Transforms symbol representations toward source entropy bounds, channel redundancy, or uniform hash diffusion.
transform/ Transform (Calculate, Integrate & Convolve) Applies deterministic numerical, algebraic, or dynamical operators across state spaces or time steps.
infer/ Infer (Fit, Cluster & Estimate) Extracts low-dimensional latent parameters or summary statistics maximizing mutual information I(X; Z).
project/ Project (Render, Rasterize & Sample) Expands compact geometric or parametric seeds into spatial coordinates, raster cells, or quasi-random sequences.

Verified Algorithms

Category Algorithm Function & Description Canonical Signature Time Complexity Path
encode has_bit64_fc4ed5 Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64) -> bool) over integer words or buffers. fn(k: i64, m: i64, q: i64) -> bool O(1) encode/has_bit64_fc4ed5
encode pack_rgb_7c0c26 Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64) -> i64) over integer words or buffers. fn(k: i64, m: i64, q: i64) -> i64 O(1) encode/pack_rgb_7c0c26
encode pack_rgba_u32_3c73f6 Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64, p: i64) -> i64) over integer words or buffers. fn(k: i64, m: i64, q: i64, p: i64) -> i64 O(1) encode/pack_rgba_u32_3c73f6
infer raggedness_freqs_fe85ee Statistical/numerical inference kernel (fn(xs: &[f64]) -> f64) estimating summary parameters or integrated quantities. fn(xs: &[f64]) -> f64 O(n) infer/raggedness_freqs_fe85ee
infer similarity_0515e4 Computes a scalar similarity, correlation, or distance metric across paired numeric series. fn(xs: &[f64], ys: &[f64]) -> f64 O(n) infer/similarity_0515e4
infer trapezoidal_auc_d62cfe Statistical/numerical inference kernel (fn(xs: &[f64], ys: &[f64]) -> f64) estimating summary parameters or integrated quantities. fn(xs: &[f64], ys: &[f64]) -> f64 O(n) infer/trapezoidal_auc_d62cfe
measure pearson_corr_3a4c71 Computes a scalar similarity, correlation, or distance metric across paired numeric series. fn(xs: &[f64], ys: &[f64]) -> f64 O(n) measure/pearson_corr_3a4c71
measure zwanzig_fep_058bef Scalar measurement kernel (fn(xs: &[f64], a: f64) -> f64) reducing input arrays or parameters to a summary metric. fn(xs: &[f64], a: f64) -> f64 O(n) measure/zwanzig_fep_058bef
select lz76_complexity_03627b Pure deterministic transformation kernel (fn(xs: &[i64]) -> i64) with O(log n) / O(n) time complexity. fn(xs: &[i64]) -> i64 O(log n) / O(n) select/lz76_complexity_03627b
transform aicc_0fb260 Nonlinear transcendental transformation kernel (fn(k: i64, a: f64, m: i64) -> f64) computing smooth activation, decay, or likelihood curves. fn(k: i64, a: f64, m: i64) -> f64 O(1) transform/aicc_0fb260
transform approx_erf_204748 Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/approx_erf_204748
transform bessel_i0_21a225 Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(n) time complexity. fn(a: f64) -> f64 O(n) transform/bessel_i0_21a225
transform binary_entropy_422d08 Computes binary Shannon entropy H2(p) in bits from a Bernoulli probability parameter. fn(a: f64) -> f64 O(1) transform/binary_entropy_422d08
transform bits_e75909 Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64, k: i64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64, k: i64) -> f64 O(1) transform/bits_e75909
transform catmull_rom_1d_06fe1d Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64, d: f64, a4: f64) -> f64 O(1) transform/catmull_rom_1d_06fe1d
transform density_f82f54 Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/density_f82f54
transform equivalent_potential_temp_4b331b Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/equivalent_potential_temp_4b331b
transform erf_approx_148c19 Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/erf_approx_148c19
transform erf_approx_7dd476 Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/erf_approx_7dd476
transform erfc_approx_19274d Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/erfc_approx_19274d
transform gauss2_d30945 Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64 O(1) transform/gauss2_d30945
transform gielis_superformula_0198b8 Trigonometric/periodic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64, a6: f64) -> f64) evaluating smooth angular or wave functions. fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64, a6: f64) -> f64 O(1) transform/gielis_superformula_0198b8
transform limit_f1ea2e Pure deterministic transformation kernel (fn(k: i64) -> i64) with O(n) time complexity. fn(k: i64) -> i64 O(n) transform/limit_f1ea2e
transform migration_fraction_e7f214 Nonlinear transcendental transformation kernel (fn(k: i64, a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(k: i64, a: f64) -> f64 O(1) transform/migration_fraction_e7f214
transform nearest_rung_index_5f0f01 Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> i64) with O(n) time complexity. fn(xs: &[f64], a: f64) -> i64 O(n) transform/nearest_rung_index_5f0f01
transform normal_two_tailed_pvalue_ee9486 Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/normal_two_tailed_pvalue_ee9486
transform percentile_sorted_de3a96 Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> f64) with O(1) time complexity. fn(xs: &[f64], a: f64) -> f64 O(1) transform/percentile_sorted_de3a96
transform poisson_llr_60e071 Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/poisson_llr_60e071
transform probit_norm_cdf_4dd3a7 Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/probit_norm_cdf_4dd3a7
transform probit_norm_cdf_a2610d Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/probit_norm_cdf_a2610d
transform qkd_secret_bits_sifted_c7d018 Nonlinear transcendental transformation kernel (fn(k: i64, a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(k: i64, a: f64) -> f64 O(1) transform/qkd_secret_bits_sifted_c7d018
transform ramp_maximize_7ed09f Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/ramp_maximize_7ed09f
transform ramp_minimize_8fc1ab Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/ramp_minimize_8fc1ab
transform sample_poisson_icdf_e7c599 Executes a deterministic parametric or inverse-CDF sampling kernel over scalar/array inputs. fn(a: f64, b: f64) -> i64 O(n) transform/sample_poisson_icdf_e7c599
transform saturation_eb3a6e Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/saturation_eb3a6e
transform shannon_entropy_bits_6a869d Computes Shannon information entropy over an input distribution or symbol-count vector. fn(xs: &[i64]) -> f64 O(n) transform/shannon_entropy_bits_6a869d
transform sigmoid_3a740f Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/sigmoid_3a740f
transform sorted_quantile_00e218 Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> f64) with O(1) time complexity. fn(xs: &[f64], a: f64) -> f64 O(1) transform/sorted_quantile_00e218
transform standard_normal_sf_fd4f9f Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64) -> f64 O(1) transform/standard_normal_sf_fd4f9f
transform transform_kernel_2a42e5 Nonlinear transcendental transformation kernel (fn(a: f64, b: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, b: f64) -> f64 O(1) transform/transform_kernel_2a42e5
transform transform_kernel_aa20a5 Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity. fn(a: f64, b: f64, c: f64) -> f64 O(1) transform/transform_kernel_aa20a5
transform transform_kernel_ad0a52 Nonlinear transcendental transformation kernel (fn(k: i64, m: i64, q: i64) -> f64) computing smooth activation, decay, or likelihood curves. fn(k: i64, m: i64, q: i64) -> f64 O(1) transform/transform_kernel_ad0a52
transform transform_kernel_c7ad70 Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(1) time complexity. fn(a: f64) -> f64 O(1) transform/transform_kernel_c7ad70
transform transform_kernel_ea4f33 Trigonometric/periodic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64) evaluating smooth angular or wave functions. fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64 O(1) transform/transform_kernel_ea4f33
transform transform_kernel_f07c60 Nonlinear transcendental transformation kernel (fn(a: f64, k: i64, b: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, k: i64, b: f64) -> f64 O(1) transform/transform_kernel_f07c60
transform velocity_8d21a8 Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64, d: f64) -> f64) computing smooth activation, decay, or likelihood curves. fn(a: f64, b: f64, c: f64, d: f64) -> f64 O(1) transform/velocity_8d21a8
transform wrap_bearing_3e4fc2 Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(n) time complexity. fn(a: f64) -> f64 O(n) transform/wrap_bearing_3e4fc2

Algorithm Pseudocode Reference

has_bit64_fc4ed5 (encode — fn(k: i64, m: i64, q: i64) -> bool)

Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64) -> bool) over integer words or buffers.

function has_bit64(k: int, m: int, q: int) -> bool:
  if (q < 32) then
    return ((k & (1 << q)) != 0)
  else
    return ((m & (1 << (q - 32))) != 0)
  end if

pack_rgb_7c0c26 (encode — fn(k: i64, m: i64, q: i64) -> i64)

Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64) -> i64) over integer words or buffers.

function pack_rgb(k: int, m: int, q: int) -> int:
  return (((k << 16) | (m << 8)) | q)

pack_rgba_u32_3c73f6 (encode — fn(k: i64, m: i64, q: i64, p: i64) -> i64)

Deterministic bit-level encoding, packing, or flag-manipulation kernel (fn(k: i64, m: i64, q: i64, p: i64) -> i64) over integer words or buffers.

function pack_rgba_u32(k: int, m: int, q: int, p: int) -> int:
  return (((k | (m << 8)) | (q << 16)) | (p << 24))

raggedness_freqs_fe85ee (infer — fn(xs: &[f64]) -> f64)

Statistical/numerical inference kernel (fn(xs: &[f64]) -> f64) estimating summary parameters or integrated quantities.

function raggedness_freqs(xs: []float) -> float:
  v0 <- 0
  v1 <- 0
  for i in 0..len(xs) do
    v2 <- xs[i]
    v3 <- (v2 - v0)
    v1 <- (v1 + (v3 * v3))
    v0 <- v2
  end for
  return (v1 + (v0 * v0))

similarity_0515e4 (infer — fn(xs: &[f64], ys: &[f64]) -> f64)

Computes a scalar similarity, correlation, or distance metric across paired numeric series.

function similarity(xs: []float, ys: []float) -> float:
  v0 <- min(len(xs), len(ys))
  if (v0 == 0) then
    return 0
  end if
  v1 <- 0
  for i in 0..v0 do
    v1 <- (v1 + abs((xs[i] - ys[i])))
  end for
  return (1 / (1 + (v1 / float(v0))))

trapezoidal_auc_d62cfe (infer — fn(xs: &[f64], ys: &[f64]) -> f64)

Statistical/numerical inference kernel (fn(xs: &[f64], ys: &[f64]) -> f64) estimating summary parameters or integrated quantities.

function trapezoidal_auc(xs: []float, ys: []float) -> float:
  v0 <- 0
  for i in 1..min(len(xs), len(ys)) do
    v1 <- (xs[i] - xs[(i - 1)])
    if (v1 > 0) then
      v0 <- (v0 + ((0.5 * (ys[(i - 1)] + ys[i])) * v1))
    end if
  end for
  return v0

pearson_corr_3a4c71 (measure — fn(xs: &[f64], ys: &[f64]) -> f64)

Computes a scalar similarity, correlation, or distance metric across paired numeric series.

function pearson_corr(xs: []float, ys: []float) -> float:
  v0 <- min(len(xs), len(ys))
  if (v0 < 3) then
    return 0
  end if
  __sum_acc_1 <- 0
  for i in 0..v0 do
    __sum_acc_1 <- (__sum_acc_1 + xs[i])
  end for
  v2 <- (__sum_acc_1 / float(v0))
  __sum_acc_3 <- 0
  for j in 0..v0 do
    __sum_acc_3 <- (__sum_acc_3 + ys[j])
  end for
  v4 <- (__sum_acc_3 / float(v0))
  v5 <- 0
  v6 <- 0
  v7 <- 0
  for t in 0..v0 do
    v8 <- (xs[t] - v2)
    v9 <- (ys[t] - v4)
    v5 <- (v5 + (v8 * v9))
    v6 <- (v6 + (v8 * v8))
    v7 <- (v7 + (v9 * v9))
  end for
  v10 <- sqrt((v6 * v7))
  if (v10 > 0.000000001) then
    return min(max((v5 / v10), -(1)), 1)
  else
    return 0
  end if

zwanzig_fep_058bef (measure — fn(xs: &[f64], a: f64) -> f64)

Scalar measurement kernel (fn(xs: &[f64], a: f64) -> f64) reducing input arrays or parameters to a summary metric.

function zwanzig_fep(xs: []float, a: float) -> float:
  if (len(xs) == 0) then
    return 0
  end if
  v0 <- (1 / max(a, 0.000001))
  v1 <- -1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  for i in 0..len(xs) do
    v2 <- xs[i]
    v3 <- (-(v2) * v0)
    if (v3 > v1) then
      v1 <- v3
    end if
  end for
  v4 <- 0
  for j in 0..len(xs) do
    v5 <- xs[j]
    v4 <- (v4 + exp(((-(v5) * v0) - v1)))
  end for
  v6 <- (v1 + ln((v4 / float(len(xs)))))
  return (-(a) * v6)

lz76_complexity_03627b (select — fn(xs: &[i64]) -> i64)

Pure deterministic transformation kernel (fn(xs: &[i64]) -> i64) with O(log n) / O(n) time complexity.

function lz76_complexity(xs: []int) -> int:
  v0 <- len(xs)
  if (v0 == 0) then
    return 0
  end if
  v1 <- 1
  v2 <- 1
  v3 <- 0
  v4 <- 1
  v5 <- 1
  while ((v2 + v4) <= v0) do
    if (xs[((v3 + v4) - 1)] == xs[((v2 + v4) - 1)]) then
      v4 <- (v4 + 1)
      if ((v2 + v4) > v0) then
        v1 <- (v1 + 1)
        break
      end if
    else
      if (v4 > v5) then
        v5 <- v4
      end if
      v3 <- (v3 + 1)
      if (v3 == v2) then
        v1 <- (v1 + 1)
        v2 <- (v2 + v5)
        if (v2 >= v0) then
          break
        end if
        v3 <- 0
        v4 <- 1
        v5 <- 1
      else
        v4 <- 1
      end if
    end if
  end while
  return v1

aicc_0fb260 (transform — fn(k: i64, a: f64, m: i64) -> f64)

Nonlinear transcendental transformation kernel (fn(k: i64, a: f64, m: i64) -> f64) computing smooth activation, decay, or likelihood curves.

function aicc(k: int, a: float, m: int) -> float:
  v0 <- float(k)
  v1 <- float(m)
  v2 <- max((a / max(v0, 1)), 0.000000000000000000000000000001)
  v3 <- ((v0 * ln(v2)) + (2 * v1))
  if (k > (m + 1)) then
    return (v3 + (((2 * v1) * (v1 + 1)) / float(((k - m) - 1))))
  else
    return (v3 + 100)
  end if

approx_erf_204748 (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function approx_erf(a: float) -> float:
  v0 <- 0
  if (a < 0) then
    v0 <- -(1)
  else
    v0 <- 1
  end if
  v1 <- abs(a)
  v2 <- (1 / (1 + (0.3275911 * v1)))
  v3 <- (1 - ((((((((((1.061405429 * v2) - 1.453152027) * v2) + 1.421413741) * v2) - 0.284496736) * v2) + 0.254829592) * v2) * exp((-(v1) * v1))))
  return (v0 * v3)

bessel_i0_21a225 (transform — fn(a: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(n) time complexity.

function bessel_i0(a: float) -> float:
  v0 <- 1
  v1 <- 1
  v2 <- ((0.25 * a) * a)
  for i in 1..28 do
    v1 <- (v1 * (v2 / float((i * i))))
    v0 <- (v0 + v1)
    if (v1 < (0.00000000000001 * v0)) then
      break
    end if
  end for
  return v0

binary_entropy_422d08 (transform — fn(a: f64) -> f64)

Computes binary Shannon entropy H2(p) in bits from a Bernoulli probability parameter.

function binary_entropy(a: float) -> float:
  v0 <- min(max(a, 0), 1)
  if ((v0 <= 0.000000000000001) or (v0 >= (1 - 0.000000000000001))) then
    return 0
  end if
  return ((-(v0) * (ln(v0) / 0.6931471805599453)) - ((1 - v0) * (ln((1 - v0)) / 0.6931471805599453)))

bits_e75909 (transform — fn(a: f64, b: f64, c: f64, k: i64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64, k: i64) -> f64) with O(1) time complexity.

function bits(a: float, b: float, c: float, k: int) -> float:
  v0 <- 2
  v1 <- 0
  if (k <= 1) then
    v1 <- 0
  else
    v1 <- (float(k) / (float(k) + 8))
  end if
  v2 <- min(max((((1 - v1) * min(max(b, 0.05), 1)) + (v1 * min(max(c, 0.08), 1))), 0.06), 1)
  return (v0 + (max((a - v0), 0) * v2))

catmull_rom_1d_06fe1d (transform — fn(a: f64, b: f64, c: f64, d: f64, a4: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64) -> f64) with O(1) time complexity.

function catmull_rom_1d(a: float, b: float, c: float, d: float, a4: float) -> float:
  v0 <- (a4 * a4)
  v1 <- (v0 * a4)
  return (0.5 * ((((2 * b) + ((-(a) + c) * a4)) + (((((2 * a) - (5 * b)) + (4 * c)) - d) * v0)) + ((((-(a) + (3 * b)) - (3 * c)) + d) * v1)))

density_f82f54 (transform — fn(a: f64, b: f64, c: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity.

function density(a: float, b: float, c: float) -> float:
  v0 <- (((999.842594 + (0.06793952 * a)) - (0.00909529 * pow(a, float(2)))) + (0.0001001685 * pow(a, float(3))))
  v1 <- ((0.824493 - (0.0040899 * a)) * b)
  v2 <- (0.0045 * c)
  return ((v0 + v1) + v2)

equivalent_potential_temp_4b331b (transform — fn(a: f64, b: f64, c: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function equivalent_potential_temp(a: float, b: float, c: float) -> float:
  v0 <- max((a + 273.15), 180)
  v1 <- min(max((b / max((1 - b), 0.9)), 0.000001), 0.05)
  v2 <- max(((c * v1) / (0.622 + v1)), 0.0001)
  v3 <- ((2840 / (((3.5 * ln(v0)) - ln(v2)) - 4.805)) + 55)
  v4 <- ((v0 * pow((1000 / max((c - v2), 10)), 0.2854)) * pow((v0 / v3), (0.28 * v1)))
  return (v4 * exp(((((3036 / v3) - 1.78) * v1) * (1 + (0.448 * v1)))))

erf_approx_148c19 (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function erf_approx(a: float) -> float:
  v0 <- 0
  if (a < 0) then
    v0 <- -(1)
  else
    v0 <- 1
  end if
  v1 <- abs(a)
  v2 <- (1 / (1 + (0.3275911 * v1)))
  v3 <- (v2 * (0.254829592 + (v2 * (-(0.284496736) + (v2 * (1.421413741 + (v2 * (-(1.453152027) + (v2 * 1.061405429)))))))))
  return (v0 * (1 - (v3 * exp((-(v1) * v1)))))

erf_approx_7dd476 (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function erf_approx(a: float) -> float:
  v0 <- abs(a)
  v1 <- (1 / (1 + (0.5 * v0)))
  v2 <- (v1 * exp((((-(v0) * v0) - 1.26551223) + (v1 * (1.00002368 + (v1 * (0.37409196 + (v1 * (0.09678418 + (v1 * (-(0.18628806) + (v1 * (0.27886807 + (v1 * (-(1.13520398) + (v1 * (1.48851587 + (v1 * (-(0.82215223) + (v1 * 0.17087277))))))))))))))))))))
  if (a >= 0) then
    return (1 - v2)
  else
    return (v2 - 1)
  end if

erfc_approx_19274d (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function erfc_approx(a: float) -> float:
  v0 <- abs(a)
  v1 <- (1 / (1 + (0.3275911 * v0)))
  v2 <- (v1 * (0.254829592 + (v1 * (-(0.284496736) + (v1 * (1.421413741 + (v1 * (-(1.453152027) + (v1 * 1.061405429)))))))))
  v3 <- (v2 * exp((-(v0) * v0)))
  if (a >= 0) then
    return v3
  else
    return (2 - v3)
  end if

gauss2_d30945 (transform — fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function gauss2(a: float, b: float, c: float, d: float, a4: float, a5: float) -> float:
  v0 <- (b - d)
  if (v0 > 180) then
    v0 <- (v0 - 360)
  else
    if (v0 < -(180)) then
      v0 <- (v0 + 360)
    end if
  end if
  v1 <- ((a - c) / a4)
  v2 <- (v0 / a5)
  return exp(-(((v1 * v1) + (v2 * v2))))

gielis_superformula_0198b8 (transform — fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64, a6: f64) -> f64)

Trigonometric/periodic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64, a6: f64) -> f64) evaluating smooth angular or wave functions.

function gielis_superformula(a: float, b: float, c: float, d: float, a4: float, a5: float, a6: float) -> float:
  v0 <- pow(abs((cos(((b * a) * 0.25)) / c)), a5)
  v1 <- pow(abs((sin(((b * a) * 0.25)) / d)), a6)
  v2 <- max((v0 + v1), 0.000000001)
  return pow(v2, (-(1) / max(a4, 0.1)))

limit_f1ea2e (transform — fn(k: i64) -> i64)

Pure deterministic transformation kernel (fn(k: i64) -> i64) with O(n) time complexity.

function limit(k: int) -> int:
  if (k < 15) then
    return 3
  end if
  v0 <- float(k)
  v1 <- 1
  v2 <- 1
  for i in 1..=35 do
    v3 <- float(i)
    v4 <- (1 - ((v3 * (v3 + 1)) / max((2.5 * v0), 20)))
    if (v4 <= 0) then
      break
    end if
    v1 <- (v1 * v4)
    if (v1 >= 0.95) then
      v2 <- i
    else
      break
    end if
  end for
  return max(v2, 2)

migration_fraction_e7f214 (transform — fn(k: i64, a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(k: i64, a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function migration_fraction(k: int, a: float) -> float:
  v0 <- min(max(a, 0.5), 3)
  v1 <- (ln(float(max(k, 40))) / 2.302585092994046)
  v2 <- max((4.35 - (0.28 * (v0 - 1))), 3.4)
  v3 <- max((1.75 - (0.15 * (v0 - 1))), 1.3)
  v4 <- ((v2 - v1) / (v2 - v3))
  return min(max(v4, 0.03), 0.96)

nearest_rung_index_5f0f01 (transform — fn(xs: &[f64], a: f64) -> i64)

Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> i64) with O(n) time complexity.

function nearest_rung_index(xs: []float, a: float) -> int:
  v0 <- 0
  v1 <- 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  for i in 0..len(xs) do
    v2 <- xs[i]
    v3 <- abs((v2 - a))
    if (v3 < v1) then
      v1 <- v3
      v0 <- i
    end if
  end for
  return v0

normal_two_tailed_pvalue_ee9486 (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function normal_two_tailed_pvalue(a: float) -> float:
  v0 <- (abs(a) / 1.4142135623730951)
  v1 <- (1 / (1 + (0.3275911 * v0)))
  v2 <- (v1 * (0.254829592 + (v1 * (-(0.284496736) + (v1 * (1.421413741 + (v1 * (-(1.453152027) + (v1 * 1.061405429)))))))))
  v3 <- (v2 * exp((-(v0) * v0)))
  return min(max(v3, 0), 1)

percentile_sorted_de3a96 (transform — fn(xs: &[f64], a: f64) -> f64)

Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> f64) with O(1) time complexity.

function percentile_sorted(xs: []float, a: float) -> float:
  if (len(xs) == 0) then
    return 0
  end if
  v0 <- (min(max(a, 0), 1) * float((len(xs) - 1)))
  v1 <- int(floor(v0))
  v2 <- int(ceil(v0))
  if (v1 == v2) then
    return xs[v1]
  else
    v3 <- (v0 - float(v1))
    return ((xs[v1] * (1 - v3)) + (xs[v2] * v3))
  end if

poisson_llr_60e071 (transform — fn(a: f64, b: f64, c: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function poisson_llr(a: float, b: float, c: float) -> float:
  if (((a <= b) or (b <= 0)) or ((c - b) <= 0)) then
    return 0
  end if
  v0 <- max((c - a), 0)
  v1 <- (c - b)
  v2 <- (a * ln((a / b)))
  v3 <- 0
  if (v0 > 0) then
    v3 <- (v0 * ln((v0 / v1)))
  else
    v3 <- 0
  end if
  return max((v2 + v3), 0)

probit_norm_cdf_4dd3a7 (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function probit_norm_cdf(a: float) -> float:
  v0 <- (a / 1.4142135623730951)
  v1 <- 0
  if (v0 < 0) then
    v1 <- -(1)
  else
    v1 <- 1
  end if
  v2 <- abs(v0)
  v3 <- (1 / (1 + (0.3275911 * v2)))
  v4 <- (1 - ((((((((((1.061405429 * v3) - 1.453152027) * v3) + 1.421413741) * v3) - 0.284496736) * v3) + 0.254829592) * v3) * exp((-(v2) * v2))))
  return (0.5 * (1 + (v1 * v4)))

probit_norm_cdf_a2610d (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function probit_norm_cdf(a: float) -> float:
  v0 <- 0
  if (a < 0) then
    v0 <- -(1)
  else
    v0 <- 1
  end if
  v1 <- (abs(a) / 1.4142135623730951)
  v2 <- (1 / (1 + (0.3275911 * v1)))
  v3 <- (1 - ((((((((((1.061405429 * v2) - 1.453152027) * v2) + 1.421413741) * v2) - 0.284496736) * v2) + 0.254829592) * v2) * exp((-(v1) * v1))))
  return (0.5 * (1 + (v0 * v3)))

qkd_secret_bits_sifted_c7d018 (transform — fn(k: i64, a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(k: i64, a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function qkd_secret_bits_sifted(k: int, a: float) -> float:
  v0 <- float(max(k, 2))
  v1 <- ((v0 - 1) / v0)
  v2 <- min(max(a, 0), v1)
  if (v2 <= 0.000000000000001) then
    return (ln(v0) / 0.6931471805599453)
  end if
  if (v2 >= (v1 - 0.000000000001)) then
    return 0
  end if
  v3 <- ((-(v2) * (ln((v2 / (v0 - 1))) / 0.6931471805599453)) - ((1 - v2) * (ln((1 - v2)) / 0.6931471805599453)))
  return max(((ln(v0) / 0.6931471805599453) - (2 * v3)), 0)

ramp_maximize_7ed09f (transform — fn(a: f64, b: f64, c: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity.

function ramp_maximize(a: float, b: float, c: float) -> float:
  if (a <= b) then
    return 0.05
  else
    if (a >= c) then
      return 1
    else
      return (0.05 + (0.95 * ((a - b) / max((c - b), 0.000000001))))
    end if
  end if

ramp_minimize_8fc1ab (transform — fn(a: f64, b: f64, c: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity.

function ramp_minimize(a: float, b: float, c: float) -> float:
  if (a <= b) then
    return 1
  else
    if (a >= c) then
      return 0.05
    else
      return (1 - (0.95 * ((a - b) / max((c - b), 0.000000001))))
    end if
  end if

sample_poisson_icdf_e7c599 (transform — fn(a: f64, b: f64) -> i64)

Executes a deterministic parametric or inverse-CDF sampling kernel over scalar/array inputs.

function sample_poisson_icdf(a: float, b: float) -> int:
  if (a <= 0.000000000001) then
    return 0
  end if
  v0 <- min(a, 45)
  v1 <- exp(-(v0))
  v2 <- v1
  if (b <= v2) then
    return 0
  end if
  for i in 1..=96 do
    v1 <- (v1 * (v0 / float(i)))
    v2 <- (v2 + v1)
    if (b <= v2) then
      return i
    end if
  end for
  return 96

saturation_eb3a6e (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function saturation(a: float) -> float:
  v0 <- (min(max(a, 0), 40) + 273.15)
  v1 <- ((((-(139.34411) + (157570.1 / v0)) - (66423080 / (v0 * v0))) + (12438000000 / ((v0 * v0) * v0))) - (862194900000 / (((v0 * v0) * v0) * v0)))
  return exp(v1)

shannon_entropy_bits_6a869d (transform — fn(xs: &[i64]) -> f64)

Computes Shannon information entropy over an input distribution or symbol-count vector.

function shannon_entropy_bits(xs: []int) -> float:
  __sum_acc_0 <- 0
  for i in 0..len(xs) do
    __sum_acc_0 <- (__sum_acc_0 + xs[i])
  end for
  v1 <- __sum_acc_0
  if (v1 == 0) then
    return 0
  end if
  v2 <- float(v1)
  v3 <- 0
  for j in 0..len(xs) do
    v4 <- xs[j]
    if (v4 > 0) then
      v5 <- (float(v4) / v2)
      v3 <- (v3 - (v5 * (ln(v5) / 0.6931471805599453)))
    end if
  end for
  return v3

sigmoid_3a740f (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function sigmoid(a: float) -> float:
  if (a >= 0) then
    return (1 / (1 + exp(-(a))))
  else
    v0 <- exp(a)
    return (v0 / (1 + v0))
  end if

sorted_quantile_00e218 (transform — fn(xs: &[f64], a: f64) -> f64)

Pure deterministic transformation kernel (fn(xs: &[f64], a: f64) -> f64) with O(1) time complexity.

function sorted_quantile(xs: []float, a: float) -> float:
  if (len(xs) == 0) then
    return 0
  end if
  v0 <- (min(max(a, 0), 1) * float((len(xs) - 1)))
  v1 <- int(floor(v0))
  v2 <- int(ceil(v0))
  v3 <- (v0 - float(v1))
  return ((xs[v1] * (1 - v3)) + (xs[v2] * v3))

standard_normal_sf_fd4f9f (transform — fn(a: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function standard_normal_sf(a: float) -> float:
  v0 <- (a / 1.4142135623730951)
  v1 <- (1 / (1 + (0.3275911 * abs(v0))))
  v2 <- (v1 * (0.254829592 + (v1 * (-(0.284496736) + (v1 * (1.421413741 + (v1 * (-(1.453152027) + (v1 * 1.061405429)))))))))
  v3 <- (v2 * exp((-(v0) * v0)))
  if (a >= 0) then
    return (0.5 * v3)
  else
    return (1 - (0.5 * v3))
  end if

transform_kernel_2a42e5 (transform — fn(a: f64, b: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, b: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function transform_kernel(a: float, b: float) -> float:
  if (a <= (1 / 3)) then
    return 0
  end if
  v0 <- 0
  if (a >= 0.999999) then
    v0 <- ((b + 0.5) / (b + 1.5))
  else
    v0 <- a
  end if
  v1 <- (1.5 * (1 - v0))
  if (v1 <= 0.000000001) then
    return 6
  else
    return max(-(ln(v1)), 0)
  end if

transform_kernel_aa20a5 (transform — fn(a: f64, b: f64, c: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64, b: f64, c: f64) -> f64) with O(1) time complexity.

function transform_kernel(a: float, b: float, c: float) -> float:
  if ((abs(a) <= 0.03) and (abs(b) <= 0.03)) then
    return 0
  else
    if (b < -(0.02)) then
      return min(max((0.42 + (0.55 * -(b))), 0.35), 0.92)
    else
      v0 <- (1 / (1 + (0.65 * max(c, 0))))
      return min(max(((0.042 / (0.55 + b)) * v0), 0.008), 0.065)
    end if
  end if

transform_kernel_ad0a52 (transform — fn(k: i64, m: i64, q: i64) -> f64)

Nonlinear transcendental transformation kernel (fn(k: i64, m: i64, q: i64) -> f64) computing smooth activation, decay, or likelihood curves.

function transform_kernel(k: int, m: int, q: int) -> float:
  if (k < 20) then
    return 0.5
  end if
  v0 <- (float(m) / float(k))
  v1 <- (float(q) / float(k))
  v2 <- max(((1 - (2 * v0)) - v1), 0.01)
  v3 <- max((1 - (2 * v1)), 0.01)
  return min(max(((-(0.5) * ln(v2)) - (0.25 * ln(v3))), 0), 1.5)

transform_kernel_c7ad70 (transform — fn(a: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(1) time complexity.

function transform_kernel(a: float) -> float:
  v0 <- min(max(a, 0), 40)
  return (((1800.6 - (120.1 * v0)) + ((3.7818 * v0) * v0)) - (((0.047608 * v0) * v0) * v0))

transform_kernel_ea4f33 (transform — fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64)

Trigonometric/periodic transformation kernel (fn(a: f64, b: f64, c: f64, d: f64, a4: f64, a5: f64) -> f64) evaluating smooth angular or wave functions.

function transform_kernel(a: float, b: float, c: float, d: float, a4: float, a5: float) -> float:
  v0 <- (a * cos(d))
  v1 <- (a * sin(d))
  v2 <- (b - (c * cos(a4)))
  v3 <- ((c * sin(a4)) * cos(a5))
  v4 <- ((c * sin(a4)) * sin(a5))
  v5 <- (v0 - v2)
  v6 <- (v1 - v3)
  return sqrt((((v5 * v5) + (v6 * v6)) + (v4 * v4)))

transform_kernel_f07c60 (transform — fn(a: f64, k: i64, b: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, k: i64, b: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function transform_kernel(a: float, k: int, b: float) -> float:
  v0 <- float(max(k, 2))
  v1 <- min(max(a, (1 / v0)), 0.999999)
  v2 <- (1 - v1)
  v3 <- 0
  if (v2 <= 0.000000001) then
    v3 <- 0
  else
    v3 <- -(((v1 * (ln(v1) / 0.6931471805599453)) + (v2 * (ln((v2 / (v0 - 1))) / 0.6931471805599453))))
  end if
  v4 <- min(max((1 - (v3 / (ln(v0) / 0.6931471805599453))), 0), 1)
  return (b * v4)

velocity_8d21a8 (transform — fn(a: f64, b: f64, c: f64, d: f64) -> f64)

Nonlinear transcendental transformation kernel (fn(a: f64, b: f64, c: f64, d: f64) -> f64) computing smooth activation, decay, or likelihood curves.

function velocity(a: float, b: float, c: float, d: float) -> float:
  v0 <- max(a, 0)
  v1 <- max(c, 0.000000001)
  v2 <- max(d, 0.000000001)
  v3 <- ((v1 + v0) + v2)
  v4 <- sqrt(max(((v3 * v3) - ((4 * v1) * v0)), 0))
  v5 <- min(max(((v3 - v4) / (2 * v1)), 0), 1)
  return (b * (1 - v5))

wrap_bearing_3e4fc2 (transform — fn(a: f64) -> f64)

Pure deterministic transformation kernel (fn(a: f64) -> f64) with O(n) time complexity.

function wrap_bearing(a: float) -> float:
  v0 <- a
  while (v0 > 180) do
    v0 <- (v0 - 360)
  end while
  while (v0 < -(180)) do
    v0 <- (v0 + 360)
  end while
  return v0

Citation

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this algorithm catalog or its test vectors in research or software, please cite the CRV Science Polyglot Algorithm Catalog."
type: software
title: "CRV Science Polyglot Algorithm Catalog"
version: "1.0.0"
date-released: "2026-11-26"
url: "https://crvscience.com/apps"
repository-code: "https://github.com/bpwhite/crvscience-algo-index"
license: "GPL-3.0-or-later"
authors:

  - family-names: "White"
    given-names: "Bryan P."
    affiliation: "CRV Science Labs"
    orcid: "https://orcid.org/0000-0003-4191-3511"
keywords:
  - "algorithms"
  - "information theory"
  - "polyglot"
  - "reference implementations"
  - "GPL-3.0"
  - "test vectors"

Algo-Index — Architecture, Modules & Validation

Version: 0.1.0
Repository: crvscience-algo-index

Source Modules (src/)

  • (See repository root for module layout)

Test Suites (tests/)

  • Inline #[cfg(test)] unit tests in src/

Preprints & Documentation

Standard Build & Test

cargo test --release

Related

Wiki: Home