class xf::fintech::MCEuropeanDJE

#include "xf_fintech_mc_european_dje.hpp"

Overview

The MCEuropeanDJE (Dow Jones Engine) class takes in an array of asset data and calculates a single Dow Jones Industrial Average (DJIA) value.

class MCEuropeanDJE: public xf::fintech::OCLController

// fields

static const int NUM_KERNELS

Inherited Members


Fields

static const int NUM_KERNELS

The following constant defines the number of KERNELS that have been built in the HW…

Methods

run

run overload (1)

int run (
    OptionType* optionType,
    double* stockPrice,
    double* strikePrice,
    double* riskFreeRate,
    double* dividendYield,
    double* volatility,
    double* timeToMaturity,
    double* requiredTolerance,
    unsigned int numAssets,
    double dowDivisor,
    double* DJIAOutput
    )

Process arrays of asset data, until required TOLERANCE is met…

Parameters:

optionType either American/European Call or Put
stockPrice the stock price
strikePrice the strike price
riskFreeRate the risk free interest rate
dividendYield the dividend yield
volatility the volatility
timeToMaturity the time to maturity
requiredTolerance the required tolerance
numAssets the number of assets
dowDivisor the Dow Divisor
DJIAOutput the returned Dow Jones Industrial Average

run overload (2)

int run (
    OptionType* optionType,
    double* stockPrice,
    double* strikePrice,
    double* riskFreeRate,
    double* dividendYield,
    double* volatility,
    double* timeToMaturity,
    unsigned int* requiredSamples,
    unsigned int numAssets,
    double dowDivisor,
    double* DJIAOutput
    )

Process arrays of asset data, for REQUIRED NUMBER OF SAMPLES…

Parameters:

optionType either American/European Call or Put
stockPrice the stock price
strikePrice the strike price
riskFreeRate the risk free interest rate
dividendYield the dividend yield
volatility the volatility
timeToMaturity the time to maturity
requiredSamples the required samples
numAssets the number of assets
dowDivisor the Dow Divisor
DJIAOutput the returned Dow Jones Industrial Average

getLastRunTime

long long int getLastRunTime (void)

This method returns the time the execution of the last call to run() took

Returns:

Execution time in microseconds