Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarcusRainbow/QuantMath
/ functions
Functions
887 in github.com/MarcusRainbow/QuantMath
⨍
Functions
887
◇
Types & classes
167
↓ 2 callers
Function
to_normalised
Normalised strike is defined as ln(K/F) / vol. It is a measure of the probability of a strike, in a date and forward independent way.
src/data/volsurface.rs:879
↓ 2 callers
Method
truncated_julian
Returns the Truncated Julian integer associated with this date
src/dates/mod.rs:222
↓ 2 callers
Method
vol_surface
(&self, _instrument: &Instrument, _high_water_mark: Date, _forward_fn: &Fn() -> Result<Arc<Forward
src/instruments/options.rs:678
↓ 2 callers
Method
vol_surfaces
(&self)
src/risk/dependencies.rs:63
↓ 2 callers
Function
walk_dependencies
( context: &MarketData, dependencies: &Arc<DependencyCollector>, forward_curves: &mut HashMap<Stri
src/risk/cache.rs:140
↓ 2 callers
Function
write_results
Unpacks a set of calculation results to the given stream. For example, they may be written to a string buffer or to a file.
src/facade/mod.rs:153
↓ 2 callers
Method
yield_curve
(&self, _credit_id: &str, _high_water_mark: Date)
src/instruments/bonds.rs:182
↓ 2 callers
Method
yield_curve
(&self, _credit_id: &str, _high_water_mark: Date)
src/instruments/options.rs:646
↓ 1 callers
Function
abort_showing_usage
src/cpp-test/quantmath_runner.cpp:80
↓ 1 callers
Method
as_any
(&self)
src/models/blackdiffusion.rs:670
↓ 1 callers
Method
as_any
(&self)
src/risk/marketdata.rs:374
↓ 1 callers
Method
as_any
(&self)
src/risk/cache.rs:366
↓ 1 callers
Method
as_bumpable
(&self)
src/models/blackdiffusion.rs:482
↓ 1 callers
Method
as_currency
(&self)
src/facade/handle.rs:102
↓ 1 callers
Function
as_error
Converts a handle into an error. Normally, this is called following a call to is_error, which has returned true, so we know the handle contains an err
src/facade/handle.rs:290
↓ 1 callers
Method
as_error
(&self)
src/facade/handle.rs:150
↓ 1 callers
Function
as_fixing_table
See documentation for as_instrument
src/facade/handle.rs:245
↓ 1 callers
Method
as_fixing_table
(&self)
src/facade/handle.rs:118
↓ 1 callers
Method
as_instrument
(&self)
src/facade/handle.rs:94
↓ 1 callers
Method
as_interp
(&self)
src/data/forward.rs:45
↓ 1 callers
Function
as_market_data
See documentation for as_instrument
src/facade/handle.rs:240
↓ 1 callers
Method
as_market_data
(&self)
src/facade/handle.rs:110
↓ 1 callers
Method
as_mc_context
(&self)
src/models/blackdiffusion.rs:481
↓ 1 callers
Method
as_mut_any
(&mut self)
src/models/blackdiffusion.rs:671
↓ 1 callers
Method
as_mut_any
(&mut self)
src/risk/marketdata.rs:375
↓ 1 callers
Method
as_mut_any
(&mut self)
src/risk/cache.rs:367
↓ 1 callers
Method
as_mut_bumpable
(&mut self)
src/risk/deltagamma.rs:227
↓ 1 callers
Method
as_priceable
(&self)
src/instruments/basket.rs:92
↓ 1 callers
Function
as_pricer_factory
See documentation for as_instrument
src/facade/handle.rs:250
↓ 1 callers
Method
as_pricer_factory
(&self)
src/facade/handle.rs:126
↓ 1 callers
Method
as_pricing_context
(&self)
src/risk/marketdata.rs:303
↓ 1 callers
Function
as_report_generator
See documentation for as_instrument
src/facade/handle.rs:255
↓ 1 callers
Method
as_report_generator
(&self)
src/facade/handle.rs:134
↓ 1 callers
Method
as_reports
(self)
src/facade/handle.rs:142
↓ 1 callers
Function
assert_approx
(value: f64, expected: f64)
src/instruments/bonds.rs:229
↓ 1 callers
Method
bump_all_relative
(&mut self, one_plus_bump: f64)
src/data/divstream.rs:59
↓ 1 callers
Method
bump_spot_date
Bumps the spot date, for example during a Theta calculation
src/risk/marketdata.rs:87
↓ 1 callers
Method
bump_time
(&mut self, bump: &BumpTime)
src/risk/deltagamma.rs:261
↓ 1 callers
Function
calculate_substepping
Work out how to step along the timeline. We need steps at each observation, but we may well need intermediate steps. This method calculates how many i
src/models/blackdiffusion.rs:251
↓ 1 callers
Method
calendar
(&self)
src/data/voldecorators.rs:65
↓ 1 callers
Method
cash
(&self)
src/data/divstream.rs:54
↓ 1 callers
Function
check_basket_european_value
(spot: f64, strike: f64, expiry: DateTime, put_or_call: PutOrCall, expected: f64)
src/instruments/options.rs:892
↓ 1 callers
Function
check_basket_forward_european_value
(spot: f64, strike_fraction: f64, strike_date: DateTime, expiry: DateTime, put_or_call: PutOrC
src/instruments/options.rs:931
↓ 1 callers
Method
clone_box
(&self)
src/models/mod.rs:82
↓ 1 callers
Function
clone_handle
(handle: u64)
src/facade/handle.rs:218
↓ 1 callers
Method
cmp
(&self, other: &RcInstrument)
src/instruments/mod.rs:215
↓ 1 callers
Method
cmp
(&self, other: &Basket)
src/instruments/basket.rs:118
↓ 1 callers
Method
collate
(&mut self)
src/models/mod.rs:113
↓ 1 callers
Method
contains_key
Returns true if the map contains this key
src/core/dedup.rs:79
↓ 1 callers
Method
content
(&self)
src/core/dedup.rs:130
↓ 1 callers
Method
context
(&self)
src/risk/deltagamma.rs:249
↓ 1 callers
Method
correlation
(&self, first: &Instrument, second: &Instrument)
src/risk/cache.rs:202
↓ 1 callers
Function
create_sample_borrow
()
src/data/forward.rs:285
↓ 1 callers
Function
create_sample_divstream
()
src/data/forward.rs:256
↓ 1 callers
Function
create_sample_rate
()
src/data/forward.rs:277
↓ 1 callers
Method
credit_id
(&self)
src/instruments/assets.rs:64
↓ 1 callers
Method
currency_risk
(&self)
src/risk/mod.rs:167
↓ 1 callers
Method
dependencies
(&self)
src/models/blackdiffusion.rs:609
↓ 1 callers
Method
dependencies
(&self)
src/risk/deltagamma.rs:246
↓ 1 callers
Method
df
Utility method to return the discount factor between two dates. You can often use the lower-level method rt more efficiently. This is just here for co
src/data/curves.rs:48
↓ 1 callers
Method
discounted_cash_divs_after
Returns the NPV of all cash dividend amounts after the given date. All amounts are discounted to the base date.
src/data/divstream.rs:391
↓ 1 callers
Method
discounted_sum
Returns the NPV of all cash and relative dividend amounts between two dates. Dividends on the 'from' date are not included. Dividends on the 'to' date
src/data/divstream.rs:353
↓ 1 callers
Method
div_assumptions
(&self)
src/data/voldecorators.rs:77
↓ 1 callers
Method
dividends
(&self)
src/data/divstream.rs:124
↓ 1 callers
Function
duplicate_fixing
(id: &str, v1: f64, v2: f64, date_time: DateTime)
src/data/fixings.rs:240
↓ 1 callers
Function
duplicate_fixing_curve
(id: &str)
src/data/fixings.rs:107
↓ 1 callers
Method
ex_date
(&self)
src/data/divstream.rs:56
↓ 1 callers
Method
factory
(&self, timeline: &MonteCarloTimeline, context: Box<BumpablePricingContext>)
src/models/blackdiffusion.rs:73
↓ 1 callers
Function
fetch_correlated_gaussians
Fetch the correlated gaussians. In other words, a set of random numbers weighted by a gaussian distribution with correlations defined by the correlati
src/models/blackdiffusion.rs:296
↓ 1 callers
Method
find_smile_date
Finds the date to use for forward variance calculations. This is not normally overridden or invoked externally.
src/data/volsurface.rs:203
↓ 1 callers
Method
fix
Transforms the instrument, given a fixing table. For example, a forward- starting European may transform to a spot-starting one. Most instruments are
src/instruments/mod.rs:119
↓ 1 callers
Method
fix
We cannot delegate fix to the contained vanilla, because it needs to know the strike
src/instruments/options.rs:343
↓ 1 callers
Method
fixed_divs_after
(&self, date: Date)
src/data/forward.rs:113
↓ 1 callers
Method
fixings
(&self, id: &str)
src/risk/dependencies.rs:84
↓ 1 callers
Method
flows
(&self)
src/models/mod.rs:131
↓ 1 callers
Method
forward
(&self, date: Date)
src/instruments/mod.rs:462
↓ 1 callers
Method
forward_curve
(&self, _instrument: &Instrument, _high_water_mark: Date)
src/instruments/assets.rs:461
↓ 1 callers
Method
forward_curve
(&self, instrument: &Instrument, high_water_mark: Date)
src/risk/marketdata.rs:188
↓ 1 callers
Method
forward_curve_hwm
(&self, instrument: &RcInstrument)
src/risk/dependencies.rs:49
↓ 1 callers
Method
forward_curves
(&self)
src/risk/dependencies.rs:59
↓ 1 callers
Method
forward_variance
Convenience method that fetches a single variance. It is generally much more efficient to use the vector method if you need variances for multiple str
src/data/volsurface.rs:192
↓ 1 callers
Method
forward_variances
Fetches the forward variances between two date/day-fractions, across a range of strikes. Forward variances are used when valuing forward- starting opt
src/data/volsurface.rs:124
↓ 1 callers
Function
free_handle
The handle is freed as a result of this call. This function must never panic, as it is invoked direct from C.
src/facade/handle.rs:302
↓ 1 callers
Method
get_fixings
Tries to get an entire fixing curve by id. Return None if there is none.
src/data/fixings.rs:89
↓ 1 callers
Function
get_generator_registry
Return the type registry required for deserialization.
src/risk/mod.rs:198
↓ 1 callers
Function
get_hwm_by_str
(map: &HashMap<String, Date>, id: &str)
src/risk/dependencies.rs:104
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/instruments/mod.rs:192
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/core/factories.rs:295
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/data/volsurface.rs:248
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/data/curves.rs:75
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/dates/rules.rs:40
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/dates/calendar.rs:99
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/pricers/mod.rs:44
↓ 1 callers
Function
get_registry
Return the type registry required for deserialization.
src/models/mod.rs:48
↓ 1 callers
Function
get_report_registry
Return the type registry required for deserialization.
src/risk/mod.rs:253
↓ 1 callers
Method
id
(&self)
src/instruments/basket.rs:44
↓ 1 callers
Method
instruments_iter
(&self)
src/risk/dependencies.rs:80
↓ 1 callers
Method
interp_cmp
(&self, other: Date)
src/dates/mod.rs:190
↓ 1 callers
Function
is_error
Tests whether a handle contains an error. Never consumes the handle. This function must never panic, as it is invoked direct from C.
src/facade/handle.rs:296
↓ 1 callers
Method
is_pure_rates
(&self)
src/instruments/bonds.rs:90
← previous
next →
301–400 of 887, ranked by callers