Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
srfm::momentum::MomentumProcessor Class Reference

#include <momentum.hpp>

Static Public Member Functions

static std::optional< RelativisticMomentum > process (const MomentumSignal &signal) noexcept
 
static std::optional< double > relativistic_momentum (BetaVelocity beta, double mass, double speed) noexcept
 
static std::optional< std::vector< RelativisticMomentum > > process_series (std::span< const MomentumSignal > signals) noexcept
 

Detailed Description

Stateless utility for applying relativistic momentum corrections.

The processor translates the BetaVelocity at each bar into a Lorentz factor γ and returns the corrected signal p_rel = γ · m_eff · raw_signal.

Definition at line 62 of file momentum.hpp.

Member Function Documentation

◆ process()

std::optional< RelativisticMomentum > srfm::momentum::MomentumProcessor::process ( const MomentumSignal &  signal)
staticnoexcept

Apply relativistic momentum correction to a single signal.

Returns

  • nullopt if effective_mass <= 0 or beta is invalid (|β| ≥ BETA_MAX_SAFE)
  • RelativisticMomentum with adjusted_value = γ · m_eff · raw_value

Definition at line 14 of file momentum_processor.cpp.

◆ process_series()

std::optional< std::vector< RelativisticMomentum > > srfm::momentum::MomentumProcessor::process_series ( std::span< const MomentumSignal >  signals)
staticnoexcept

Apply corrections to a full series of signals in one call.

Signals with invalid β fall back to the raw value (γ = 1 Newtonian limit).

Returns

Vector of adjusted values, same length as signals. Returns nullopt if signals is empty.

Definition at line 56 of file momentum_processor.cpp.

◆ relativistic_momentum()

std::optional< double > srfm::momentum::MomentumProcessor::relativistic_momentum ( BetaVelocity  beta,
double  mass,
double  speed 
)
staticnoexcept

Compute relativistic momentum magnitude: p_rel = γ(β) · mass · speed.

Arguments

  • beta — Market velocity β
  • mass — Effective mass m_eff > 0
  • speed — Speed component (|raw signal| or |price velocity|)

Returns

p_rel ≥ 0, or nullopt on invalid inputs.

Definition at line 37 of file momentum_processor.cpp.


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