C# Class FastQuant.Quant.FinMath

Mostra file Open project: fastquant/fastquant.dll Class Usage Examples

Public Methods

Method Description
BM ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
BM ( double S, double X, double t, double s, double r, EPutCall PutCall, int n ) : double
BS ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
BinarySearch ( int n, double SearchArray, double SearchValue ) : int
BinarySearch ( int n, int SearchArray, int SearchValue ) : int
Binom ( int m, int n, double p ) : double
C ( int m, int n ) : double
Call ( double s, double x ) : double
Delta ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
Distance ( double X1, double Y1, double X2, double Y2 ) : double
Distance ( double X1, double Y1, double Z1, double X2, double Y2, double Z2 ) : double
FV1 ( double p, double r, double n ) : double
FV2 ( double p, double r, double n ) : double
FV3 ( double p, double r, double n, double m ) : double
FV4 ( double p, double r, double n ) : double
Fact ( int n ) : double
FuturesPrice ( double S, double t, double r ) : double
FuturesPrice ( double S, double t, double r, double I ) : double
Gamma ( double S, double X, double t, double s, double r ) : double
GetNDays ( System.DateTime date1, System.DateTime date2 ) : int
ImpliedVolatility ( double S, double X, double t, double r, double P, EOptionType OptionType, EPutCall PutCall, EOptionPrice Method ) : double
ImpliedVolatility ( double S, double X, double t, double r, double P, EOptionType OptionType, EPutCall PutCall, EOptionPrice Method, int n, double Eps ) : double
MC ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
MC ( double S, double X, double t, double s, double r, EPutCall PutCall, int n ) : double
Max ( System.DateTime dateTime1, System.DateTime dateTime2 ) : System.DateTime
Max ( System.DateTime dateTime1, System.DateTime dateTime2, System.DateTime dateTime3 ) : System.DateTime
Max ( double value1, double value2, double value3 ) : double
Max ( int value1, int value2, int value3 ) : int
Min ( System.DateTime dateTime1, System.DateTime dateTime2 ) : System.DateTime
Min ( System.DateTime dateTime1, System.DateTime dateTime2, System.DateTime dateTime3 ) : System.DateTime
Min ( double value1, double value2, double value3 ) : double
Min ( int value1, int value2, int value3 ) : int
N ( double z ) : double
PV1 ( double f, double r, double n ) : double
PV2 ( double f, double r, double n ) : double
PV3 ( double f, double r, double n, double m ) : double
PV4 ( double f, double r, double n ) : double
Parity ( double p, double s, double x, double t, double r, EPutCall putcall ) : double
Payoff ( double s, double x, EPutCall putcall ) : double
Percent ( double P, double Base ) : double
Percentile ( double Level, double Data ) : double
Put ( double s, double x ) : double
Rho ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
Theta ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
Vega ( double S, double X, double t, double s, double r ) : double
d ( double t, double s, int n ) : double
d1 ( double S, double X, double t, double s, double r ) : double
d2 ( double S, double X, double t, double s, double r ) : double
d2PV2 ( double f, double r, double n ) : double
dPV2 ( double f, double r, double n ) : double
n ( double z ) : double
p ( double t, double s, int n, double r ) : double
u ( double t, double s, int n ) : double

Method Details

BM() public static method

public static BM ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

BM() public static method

public static BM ( double S, double X, double t, double s, double r, EPutCall PutCall, int n ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
n int
return double

BS() public static method

public static BS ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

BinarySearch() public static method

public static BinarySearch ( int n, double SearchArray, double SearchValue ) : int
n int
SearchArray double
SearchValue double
return int

BinarySearch() public static method

public static BinarySearch ( int n, int SearchArray, int SearchValue ) : int
n int
SearchArray int
SearchValue int
return int

Binom() public static method

public static Binom ( int m, int n, double p ) : double
m int
n int
p double
return double

C() public static method

public static C ( int m, int n ) : double
m int
n int
return double

Call() public static method

public static Call ( double s, double x ) : double
s double
x double
return double

Delta() public static method

public static Delta ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

Distance() public static method

public static Distance ( double X1, double Y1, double X2, double Y2 ) : double
X1 double
Y1 double
X2 double
Y2 double
return double

Distance() public static method

public static Distance ( double X1, double Y1, double Z1, double X2, double Y2, double Z2 ) : double
X1 double
Y1 double
Z1 double
X2 double
Y2 double
Z2 double
return double

FV1() public static method

public static FV1 ( double p, double r, double n ) : double
p double
r double
n double
return double

FV2() public static method

public static FV2 ( double p, double r, double n ) : double
p double
r double
n double
return double

FV3() public static method

public static FV3 ( double p, double r, double n, double m ) : double
p double
r double
n double
m double
return double

FV4() public static method

public static FV4 ( double p, double r, double n ) : double
p double
r double
n double
return double

Fact() public static method

public static Fact ( int n ) : double
n int
return double

FuturesPrice() public static method

public static FuturesPrice ( double S, double t, double r ) : double
S double
t double
r double
return double

FuturesPrice() public static method

public static FuturesPrice ( double S, double t, double r, double I ) : double
S double
t double
r double
I double
return double

Gamma() public static method

public static Gamma ( double S, double X, double t, double s, double r ) : double
S double
X double
t double
s double
r double
return double

GetNDays() public static method

public static GetNDays ( System.DateTime date1, System.DateTime date2 ) : int
date1 System.DateTime
date2 System.DateTime
return int

ImpliedVolatility() public static method

public static ImpliedVolatility ( double S, double X, double t, double r, double P, EOptionType OptionType, EPutCall PutCall, EOptionPrice Method ) : double
S double
X double
t double
r double
P double
OptionType EOptionType
PutCall EPutCall
Method EOptionPrice
return double

ImpliedVolatility() public static method

public static ImpliedVolatility ( double S, double X, double t, double r, double P, EOptionType OptionType, EPutCall PutCall, EOptionPrice Method, int n, double Eps ) : double
S double
X double
t double
r double
P double
OptionType EOptionType
PutCall EPutCall
Method EOptionPrice
n int
Eps double
return double

MC() public static method

public static MC ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

MC() public static method

public static MC ( double S, double X, double t, double s, double r, EPutCall PutCall, int n ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
n int
return double

Max() public static method

public static Max ( System.DateTime dateTime1, System.DateTime dateTime2 ) : System.DateTime
dateTime1 System.DateTime
dateTime2 System.DateTime
return System.DateTime

Max() public static method

public static Max ( System.DateTime dateTime1, System.DateTime dateTime2, System.DateTime dateTime3 ) : System.DateTime
dateTime1 System.DateTime
dateTime2 System.DateTime
dateTime3 System.DateTime
return System.DateTime

Max() public static method

public static Max ( double value1, double value2, double value3 ) : double
value1 double
value2 double
value3 double
return double

Max() public static method

public static Max ( int value1, int value2, int value3 ) : int
value1 int
value2 int
value3 int
return int

Min() public static method

public static Min ( System.DateTime dateTime1, System.DateTime dateTime2 ) : System.DateTime
dateTime1 System.DateTime
dateTime2 System.DateTime
return System.DateTime

Min() public static method

public static Min ( System.DateTime dateTime1, System.DateTime dateTime2, System.DateTime dateTime3 ) : System.DateTime
dateTime1 System.DateTime
dateTime2 System.DateTime
dateTime3 System.DateTime
return System.DateTime

Min() public static method

public static Min ( double value1, double value2, double value3 ) : double
value1 double
value2 double
value3 double
return double

Min() public static method

public static Min ( int value1, int value2, int value3 ) : int
value1 int
value2 int
value3 int
return int

N() public static method

public static N ( double z ) : double
z double
return double

PV1() public static method

public static PV1 ( double f, double r, double n ) : double
f double
r double
n double
return double

PV2() public static method

public static PV2 ( double f, double r, double n ) : double
f double
r double
n double
return double

PV3() public static method

public static PV3 ( double f, double r, double n, double m ) : double
f double
r double
n double
m double
return double

PV4() public static method

public static PV4 ( double f, double r, double n ) : double
f double
r double
n double
return double

Parity() public static method

public static Parity ( double p, double s, double x, double t, double r, EPutCall putcall ) : double
p double
s double
x double
t double
r double
putcall EPutCall
return double

Payoff() public static method

public static Payoff ( double s, double x, EPutCall putcall ) : double
s double
x double
putcall EPutCall
return double

Percent() public static method

public static Percent ( double P, double Base ) : double
P double
Base double
return double

Percentile() public static method

public static Percentile ( double Level, double Data ) : double
Level double
Data double
return double

Put() public static method

public static Put ( double s, double x ) : double
s double
x double
return double

Rho() public static method

public static Rho ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

Theta() public static method

public static Theta ( double S, double X, double t, double s, double r, EPutCall PutCall ) : double
S double
X double
t double
s double
r double
PutCall EPutCall
return double

Vega() public static method

public static Vega ( double S, double X, double t, double s, double r ) : double
S double
X double
t double
s double
r double
return double

d() public static method

public static d ( double t, double s, int n ) : double
t double
s double
n int
return double

d1() public static method

public static d1 ( double S, double X, double t, double s, double r ) : double
S double
X double
t double
s double
r double
return double

d2() public static method

public static d2 ( double S, double X, double t, double s, double r ) : double
S double
X double
t double
s double
r double
return double

d2PV2() public static method

public static d2PV2 ( double f, double r, double n ) : double
f double
r double
n double
return double

dPV2() public static method

public static dPV2 ( double f, double r, double n ) : double
f double
r double
n double
return double

n() public static method

public static n ( double z ) : double
z double
return double

p() public static method

public static p ( double t, double s, int n, double r ) : double
t double
s double
n int
r double
return double

u() public static method

public static u ( double t, double s, int n ) : double
t double
s double
n int
return double