|
Special Relativity in Financial Modeling 1.0.0
Lorentz transforms, spacetime classification, and geodesic price paths for quantitative finance
|
#include <proper_time.hpp>
Public Member Functions | |
| ProperTimeClock (double max_vol=DEFAULT_MAX_VOL) | |
| void | tick (double new_vol, double dt_days=1.0) noexcept |
| double | elapsed_proper_time () const noexcept |
| Total elapsed proper time in days. | |
| double | elapsed_coordinate_time () const noexcept |
| Total elapsed coordinate (calendar) time in days. | |
| double | current_gamma () const noexcept |
| Current Lorentz factor (from the most recent tick). | |
| double | current_velocity () const noexcept |
| Current normalised velocity β. | |
| double | max_vol () const noexcept |
| Maximum volatility cap. | |
| std::size_t | tick_count () const noexcept |
| Number of ticks accumulated. | |
| void | reset () noexcept |
| Reset all accumulators. | |
Integrates proper time τ = ∑ dt / γ(v(t)) over a sequence of volatility observations.
Each call to tick() advances the clock by dτ = dt_days / γ(v), where v is derived from the supplied volatility.
Definition at line 99 of file proper_time.hpp.
|
explicit |
| max_vol | Volatility cap analogous to the speed of light (default DEFAULT_MAX_VOL). |
Definition at line 51 of file proper_time.cpp.
|
inlinenoexcept |
Current Lorentz factor (from the most recent tick).
Definition at line 122 of file proper_time.hpp.
|
inlinenoexcept |
Current normalised velocity β.
Definition at line 127 of file proper_time.hpp.
|
inlinenoexcept |
Total elapsed coordinate (calendar) time in days.
Definition at line 117 of file proper_time.hpp.
|
inlinenoexcept |
Total elapsed proper time in days.
Definition at line 112 of file proper_time.hpp.
|
inlinenoexcept |
Maximum volatility cap.
Definition at line 132 of file proper_time.hpp.
|
noexcept |
Reset all accumulators.
Definition at line 73 of file proper_time.cpp.
|
noexcept |
Advance the clock by one observation.
| new_vol | Current annualised portfolio volatility. |
| dt_days | Calendar days elapsed since the last tick (default 1). |
Definition at line 56 of file proper_time.cpp.
|
inlinenoexcept |
Number of ticks accumulated.
Definition at line 135 of file proper_time.hpp.