stats

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stats is a require()-able host module providing the descriptive and inferential statistics a data-science workflow reaches for first: central tendency (mean/median/mode), spread (variance/stddev/iqr/range), shape (skewness/kurtosis), relationships (covariance/correlation), and the per-element transforms (zscore/normalize/standardize) used to prepare features. Every function takes a Lua array of numbers; the relationship functions take two equal-length arrays.

The numeric core lives in functions over []float64 (tested directly in stats_test.go); the GoFunc wrappers only marshal Lua tables in and out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStatsPreload

func RegisterStatsPreload(v *vm.VM)

RegisterStatsPreload installs the loader under package.preload so the module table is built lazily on the first require("stats").

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL