-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust all cvar functions to receive weights and alphatest on argumen…
…ts and project build update
- Loading branch information
Showing
8 changed files
with
103 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Portfolio VaR through MC simulation | ||
// from test_ptf_mc_var.cpp | ||
|
||
#pragma once | ||
|
||
|
||
#include <string> | ||
#include <vector> | ||
|
||
|
||
namespace RiskJS { | ||
|
||
// Vectors types for function arguments | ||
typedef std::vector<std::string> priceRow; | ||
typedef std::vector<priceRow> priceData; | ||
typedef std::vector<double> weightData; | ||
|
||
double CVaRMonteCarlo(priceData rawPrices, weightData weights, double alphatest); | ||
double CVaRHistorical(priceData rawPrices, weightData weights, double alphatest); | ||
double CVaRVarianceCovariance(priceData rawPrices, weightData weights, double alphatest); | ||
|
||
} // namespace RiskJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.