MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::Generator::Stochastics::StochasticContext Class Reference

Specialized context for stochastic generator callbacks. More...

#include <Stochastic.hpp>

+ Inheritance diagram for MayaFlux::Nodes::Generator::Stochastics::StochasticContext:
+ Collaboration diagram for MayaFlux::Nodes::Generator::Stochastics::StochasticContext:

Public Member Functions

 StochasticContext (double value, Utils::distribution type, double amplitude, double range_start, double range_end, double normal_spread)
 Constructs a StochasticContext with the current generator state.
 
- Public Member Functions inherited from MayaFlux::Nodes::NodeContext
virtual ~NodeContext ()=default
 
template<typename T >
T * as ()
 Safely cast to a derived context type.
 

Public Attributes

Utils::distribution distribution_type
 Current distribution type.
 
double amplitude
 Current amplitude scaling factor.
 
double range_start
 Current lower bound of the range.
 
double range_end
 Current upper bound of the range.
 
double normal_spread
 Current variance parameter for normal distribution.
 
- Public Attributes inherited from MayaFlux::Nodes::NodeContext
double value
 Current sample value.
 
std::string type_id
 Type identifier for runtime type checking.
 

Additional Inherited Members

- Protected Member Functions inherited from MayaFlux::Nodes::NodeContext
 NodeContext (double value, const std::string &type)
 Protected constructor for NodeContext.
 

Detailed Description

Specialized context for stochastic generator callbacks.

StochasticContext extends the base NodeContext to provide detailed information about a stochastic generator's current state to callbacks. It includes the current distribution type, amplitude scaling, range parameters, and statistical configuration values.

This rich context enables callbacks to perform sophisticated analysis and monitoring of stochastic behavior, such as:

  • Tracking statistical properties of generated sequences
  • Implementing adaptive responses to emergent patterns
  • Visualizing probability distributions in real-time
  • Creating cross-domain mappings based on stochastic properties
  • Detecting and responding to specific statistical conditions

Definition at line 25 of file Stochastic.hpp.


The documentation for this class was generated from the following file: