Add shape statistics helpers#18
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR prepares LuaSF for
v0.6.0by adding shape statistics helpers focused on distribution shape analysis.It builds on the modular source layout introduced in
v0.5.0and keeps the public API stable while adding new descriptive statistics capabilities.What changed
Added shape statistics helpers
Added a new internal module:
The module adds:
These helpers make it possible to analyze the shape of numeric distributions using central moments, skewness, kurtosis, and excess kurtosis.
Updated public facade
Updated:
to expose the new shape statistics helpers through the public LuaSF API:
Added tests
Added:
The new tests cover:
Added example
Added:
This example demonstrates how to calculate skewness, kurtosis, and excess kurtosis for simple datasets.
Added LuaRocks rockspec
Added:
The rockspec prepares LuaSF for the
v0.6.0LuaRocks package release.Updated workflows
Updated GitHub Actions workflows to include the new shape statistics test and example:
Updated files:
Updated documentation
Updated documentation for the new helpers:
Compatibility notes
This PR does not remove or rename existing public functions.
Existing usage remains supported:
Legacy function names remain available.
Testing
Tested locally with:
Examples can be run with:
Release target
This PR prepares LuaSF for:
Scope note
LuaSF remains focused on lightweight statistics, probability, random variables, sampling, and simulation utilities.
Regression modeling, optimization-based workflows, machine learning training pipelines, and non-linear regression remain outside the current scope of LuaSF.