Energy Flux Tracking & Information Theory Foundation#132
Merged
M1thieu merged 2 commits intoerematorg:mainfrom Jul 8, 2025
Merged
Energy Flux Tracking & Information Theory Foundation#132M1thieu merged 2 commits intoerematorg:mainfrom
M1thieu merged 2 commits intoerematorg:mainfrom
Conversation
Spacetime will be mostly covered by Bevy actually, as I did plan to make my own Engine it's now unnecessary, Also begin of Information Theory Crate: - Shannon entropy: conditional H(X|Y), joint H(X,Y), probability-based entropy - Distribution comparison: KL divergence, Jensen-Shannon, cross-entropy - Enhanced mutual information with Miller-Madow bias correction
Enhanced the energy conservation system with comprehensive flux tracking capabilities: - Add transfer_rate and duration fields to EnergyTransaction - Add flux analytics methods to EnergyAccountingLedger - Add create_flux_transaction method to EnergySystem trait - Fix EnergyType duplication between lib.rs and conservation.rs - Rename create_standing_wave to create_standing_wave_parameters Enables tracking of sustained energy flows vs instantaneous transfers for ecosystem dynamics. Side note for myself, no update for more than 2 weeks as I've been working on PBMPM and yet failed again & again LP physics will have to wait a little more, I'm so sorry to slow down the project ): I think I need help
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.
Objective
Implementation
Energy Flux Tracking:
EnergyTransactionwithtransfer_rateanddurationfieldsEnergyAccountingLedgerfor flow pattern analysiscreate_flux_transaction()method for sustained energy transfersInformation Theory:
Code Quality:
EnergyTypedefinitionscreate_standing_wave→create_standing_wave_parametersfor accuracyTesting
Visual Changes
Technical Notes
Compatibility: Fully backward compatible
Future Ready: Foundation prepared for physics engine integration
Limitations: Flux assumes linear transfer rates, information theory needs adequate sample sizes