Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
Loading...
Searching...
No Matches
Classes | Functions
srfm::beta_calculator Namespace Reference

Classes

class  BetaCalculator
 
struct  BetaVelocityResult
 Computed relativistic quantities for a given β. More...
 

Functions

std::optional< double > rapidity (BetaVelocity beta) noexcept
 Compute rapidity φ = atanh(β).
 
std::optional< double > doppler_factor (BetaVelocity beta) noexcept
 Compute relativistic Doppler factor D(β) = √((1+β)/(1−β)).
 
std::optional< BetaVelocityResult > full_beta_result (double beta_value) noexcept
 Compute full BetaVelocityResult for a given β value.
 

Function Documentation

◆ doppler_factor()

std::optional< double > srfm::beta_calculator::doppler_factor ( BetaVelocity  beta)
noexcept

Compute relativistic Doppler factor D(β) = √((1+β)/(1−β)).

Invariant: D(β) · D(−β) = 1.0 for all valid β.

Returns
std::nullopt if result is non-finite.
Examples
/home/runner/work/Special-Relativity-in-Financial-Modeling/Special-Relativity-in-Financial-Modeling/src/beta_calculator/beta_calculator.hpp.

Definition at line 29 of file beta_calculator.cpp.

◆ full_beta_result()

std::optional< BetaVelocityResult > srfm::beta_calculator::full_beta_result ( double  beta_value)
noexcept

Compute full BetaVelocityResult for a given β value.

Convenience wrapper: γ + φ + D all computed and validated together.

Returns
std::nullopt if any sub-computation fails.
Examples
/home/runner/work/Special-Relativity-in-Financial-Modeling/Special-Relativity-in-Financial-Modeling/src/beta_calculator/beta_calculator.hpp.

Definition at line 45 of file beta_calculator.cpp.

◆ rapidity()

std::optional< double > srfm::beta_calculator::rapidity ( BetaVelocity  beta)
noexcept

Compute rapidity φ = atanh(β).

Rapidity is additive under relativistic velocity composition: φ(β₁ ⊕ β₂) = φ(β₁) + φ(β₂)

Returns
std::nullopt if β is non-finite or |β| ≥ BETA_MAX_SAFE.
Examples
/home/runner/work/Special-Relativity-in-Financial-Modeling/Special-Relativity-in-Financial-Modeling/src/beta_calculator/beta_calculator.hpp.

Definition at line 18 of file beta_calculator.cpp.