Technique Selector#
Selects the fastest available pricing technique for a given model.
The function checks the capabilities of the model in a specific order of preference, which generally corresponds to computational speed.
The order of preference is: 1. Closed-Form 2. Fast Fourier Transform (FFT) 3. Monte Carlo
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model
|
BaseModel
|
The financial model for which to select a technique. |
required |
Returns:
Type | Description |
---|---|
BaseTechnique
|
An instance of the fastest suitable pricing technique. |
Raises:
Type | Description |
---|---|
TypeError
|
If no suitable pricing technique can be found for the model. |