LibreOffice Module scaddins (master) 1
Namespaces | Functions
sca::pricing::bs Namespace Reference

Namespaces

namespace  internal
 
namespace  types
 

Functions

static double sqr (double x)
 
static double dnorm (double x)
 
static double pnorm (double x)
 
double bincash (double S, double vol, double rd, double rf, double tau, double K, types::PutCall pc, types::Greeks greeks)
 
double binasset (double S, double vol, double rd, double rf, double tau, double K, types::PutCall pc, types::Greeks greeks)
 
static double binary (double S, double vol, double rd, double rf, double tau, double K, types::PutCall pc, types::ForDom fd, types::Greeks greek)
 
static double binary (double S, double vol, double rd, double rf, double tau, double B1, double B2, types::ForDom fd, types::Greeks greek)
 
double putcall (double S, double vol, double rd, double rf, double tau, double K, types::PutCall putcall, types::Greeks greeks)
 
double putcalltrunc (double S, double vol, double rd, double rf, double tau, double K, double B, types::PutCall pc, types::KOType kotype, types::Greeks greeks)
 
double putcalltrunc (double S, double vol, double rd, double rf, double tau, double K, double B1, double B2, types::PutCall pc, types::Greeks greek)
 
double touch (double S, double vol, double rd, double rf, double tau, double B1, double B2, types::ForDom fd, types::BarrierKIO kio, types::BarrierActive bcont, types::Greeks greek)
 
double barrier (double S, double vol, double rd, double rf, double tau, double K, double B1, double B2, double rebate, types::PutCall pc, types::BarrierKIO kio, types::BarrierActive bcont, types::Greeks greek)
 
double prob_hit (double S, double vol, double mu, double tau, double B1, double B2)
 
double prob_in_money (double S, double vol, double mu, double tau, double B1, double B2)
 
double prob_in_money (double S, double vol, double mu, double tau, double K, double B1, double B2, types::PutCall pc)
 

Function Documentation

◆ barrier()

double sca::pricing::bs::barrier ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
double  B1,
double  B2,
double  rebate,
types::PutCall  pc,
types::BarrierKIO  kio,
types::BarrierActive  bcont,
types::Greeks  greek 
)

◆ binary() [1/2]

static double sca::pricing::bs::binary ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  B1,
double  B2,
types::ForDom  fd,
types::Greeks  greek 
)
static

◆ binary() [2/2]

static double sca::pricing::bs::binary ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
types::PutCall  pc,
types::ForDom  fd,
types::Greeks  greek 
)
static

◆ binasset()

double sca::pricing::bs::binasset ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
types::PutCall  pc,
types::Greeks  greeks 
)

◆ bincash()

double sca::pricing::bs::bincash ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
types::PutCall  pc,
types::Greeks  greeks 
)

◆ dnorm()

static double sca::pricing::bs::dnorm ( double  x)
static

Definition at line 90 of file black_scholes.cxx.

References x.

Referenced by binasset(), bincash(), and putcall().

◆ pnorm()

static double sca::pricing::bs::pnorm ( double  x)
static

Definition at line 95 of file black_scholes.cxx.

References x.

Referenced by binasset(), bincash(), and putcall().

◆ prob_hit()

double sca::pricing::bs::prob_hit ( double  S,
double  vol,
double  mu,
double  tau,
double  B1,
double  B2 
)

◆ prob_in_money() [1/2]

double sca::pricing::bs::prob_in_money ( double  S,
double  vol,
double  mu,
double  tau,
double  B1,
double  B2 
)

◆ prob_in_money() [2/2]

double sca::pricing::bs::prob_in_money ( double  S,
double  vol,
double  mu,
double  tau,
double  K,
double  B1,
double  B2,
types::PutCall  pc 
)

◆ putcall()

double sca::pricing::bs::putcall ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
types::PutCall  putcall,
types::Greeks  greeks 
)

◆ putcalltrunc() [1/2]

double sca::pricing::bs::putcalltrunc ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
double  B,
types::PutCall  pc,
types::KOType  kotype,
types::Greeks  greeks 
)

◆ putcalltrunc() [2/2]

double sca::pricing::bs::putcalltrunc ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  K,
double  B1,
double  B2,
types::PutCall  pc,
types::Greeks  greek 
)

◆ sqr()

static double sca::pricing::bs::sqr ( double  x)
static

◆ touch()

double sca::pricing::bs::touch ( double  S,
double  vol,
double  rd,
double  rf,
double  tau,
double  B1,
double  B2,
types::ForDom  fd,
types::BarrierKIO  kio,
types::BarrierActive  bcont,
types::Greeks  greek 
)