maxIterations_Maximum number of iterations.Are these iterations through the TimeSeries data or future iterations of how many results will be returned.
maxStationaryStateIterations_Maximun number of iterations in stationary state.What is the meaning of stationary state.
rootEpsilon_root, function and gradient epsilonsI assume this is the value from which the process starts searching.
functionEpsilon_What's this?
gradientNormEpsilon_What's this?
Hi,Ok, I've progressed and I'm willing to share my code here for anyone else who is having difficulties.This is the main method of my class:int CGarch::GarchOnArray(const std::vector<double> &iPrices, std::vector<double> &oGarch){if (iPrices.empty()) {QL_FAIL("ERROR: input array (ts) is empty");return -1;}if(iPrices.size < 3) {QL_FAIL("ERROR: minimum (3) individual prices not present in ts array");return -1;}oGarch.clear();Date ds(7, July, 1962);TimeSeries<Volatility> ts(ds, iPrices.begin(), iPrices.end());Garch11 g11(ts, Garch11::MomentMatchingGuess);LevenbergMarquardt lm;g11.calibrate(ts, lm, EndCriteria(3, 2, 0.0, 0.0, 0.0));g11.calibrate(ts);TimeSeries<Volatility> tsOut = g11.calculate(ts);tsOut.find(ds+ts.size()+1);oGarch = tsOut.values();return 0;}However, I still don't understand the EndCriteria part of the code and haven't been able to find any answers in the available documentation.I'd appreciate if someone could help me explain what each parameter does.maxIterations_
Maximum number of iterations.Are these iterations through the TimeSeries data or future iterations of how many results will be returned.maxStationaryStateIterations_
Maximun number of iterations in stationary state.What is the meaning of stationary state.rootEpsilon_
root, function and gradient epsilonsI assume this is the value from which the process starts searching.functionEpsilon_What's this?gradientNormEpsilon_What's this?I appreciate this all probably related to Levenberg-Marquardt algorithm but I'm not a maths expert and haven't done stochastic calculus so struggling a little bit with this.Really appreciate any help.Thanks in advance.-------
Internet communications are not secure and therefore Andrew Leach does not accept legal responsibility for the contents of this message. The information contained in this email is private, personal and confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. This email and any attachments have been automatically scanned for viruses prior to dispatch, but we make no warranty that they are free from computer viruses. You are advised to check all emails and attachments using your own anti virus software before opening or executing them.On 11 July 2017 at 00:26, Andrew Leach <[hidden email]> wrote:I've been reading the Book on Implementing QuantLib that I bought on LeanPub and the test case examples and I've come up with this outline of code that I need to perform Garch11 calculations.QuantLib::Garch11 cgarch2(iArray, Garch11::MomentMatchingGuess);LevenbergMarquardt lm;cgarch2.calibrate(iArray, lm, EndCriteria(3, 2, 0.0, 0.0, 0.0));cgarch2.calibrate(iArray);oArray = garch.calculate(iArray);where iArray and oArray are QuantLib::TimeSeries<Volatility> objects. Is this outline correct? I appreciate someone giving some insight as I'm relatively new to this.Also, I don't understand how to define the EndCriteria part of the calibrate method. I've read the docs and that doesn't help me either. Could someone explain in simple English please?What I want to do is finish after 3 interations but as far as the other parameters I'm none the wiser.Anyone can help me?Thanks in advance.-------
Internet communications are not secure and therefore Andrew Leach does not accept legal responsibility for the contents of this message. The information contained in this email is private, personal and confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. This email and any attachments have been automatically scanned for viruses prior to dispatch, but we make no warranty that they are free from computer viruses. You are advised to check all emails and attachments using your own anti virus software before opening or executing them.
------------------------------------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Free forum by Nabble | Disable Popup Ads | Edit this page |