SourceForge.net | 19 Nov 20:29
Favicon
Gravatar

[ quantlib-Patches-2315587 ] Fast Fourier Transform changes.

Patches item #2315587, was opened at 2008-11-19 14:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=312740&aid=2315587&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Slava Mazur (shlagbaum)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fast Fourier Transform changes.

Initial Comment:
I propose the following changes to ql/math/fastfouriertransform.hpp and related files:

1. Enabled it (ifdef changed to ifndef)

2. Made number of frequencies a run time parameter, which 
is passed as a parameter of class ctor. Very often the frequency of FT is determined at run time, so it's
better 
to have it this way.

3. Improved performance. Sines and cosines for a given frequency are calculated ones at object
construction. This also allows for reuse the same object for different transformations.
(Continue reading)

Ferdinando Ametrano | 20 Nov 13:00

Re: [QuantLib-svn] SF.net SVN: quantlib:[15775] trunk/QuantLib/ql/time/schedule.cpp

On Thu, Nov 20, 2008 at 12:41 PM, Luigi Ballabio
<luigi.ballabio <at> gmail.com> wrote:
> On Thu, 2008-11-20 at 11:24 +0000, nando <at> users.sourceforge.net wrote:
>> Log Message:
>> -----------
>> fixed bug: the first (next-to-last) date was not always included in the schedule
>>
>> Modified Paths:
>> --------------
>>     trunk/QuantLib/ql/time/schedule.cpp
>
> May you include a test case to ensure that the bug won't come back?

I'm working on that one.

ciao -- Nando

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Rwanma | 17 Nov 12:31

QuantLib 1.0


Hi, 

could you tell me when you think the 1.0 release will be ready for testing ?

thanks

--

-- 
View this message in context: http://www.nabble.com/QuantLib-1.0-tp20537821p20537821.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Stephen Tse | 16 Nov 02:31

a QuantLib newbie PhD student who want to implement Multi-factor Copula

Hi All,

  I am a PhD student who has recently started using QuantLib. It happened some days ago that I need to do some calculations using the Multi-factor gaussian copula credit model.
I found out that QuantLib lacks it but instead has several single-factor copula models.
  At the same time, I want to participate in the QuantLib project so as to brush up my C++ as well as gain some experience in large-scale software development. Multi-factor gaussian copula model seems a good starting point because it involves mainly mathematical calcaltions and so I can code it even without fully understanding complicated classes like PricingEngine. What do you guys think? Besides, any advice on what parts of QuantLib I should study in detail before coding it? And can people who contributed to QuantLib when they were relativeily new users share some experience?
  Also, is any one also implementing it or something similar?
  Thanks a lot.

Cheers,
Stephen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
a.p. | 12 Nov 13:41

FDDividendEngineShiftScale class


Hello everybody!
Currently, i try to implement FD Framework for american option valuation (on
stock with dividends), and then use it for single barrier option pricing. I
use FDDividendEngineShiftScale and unfortunately found that results are
absolutly unreliable. The main function, which is used for calculation, is
FDMultiPeriodEngine:: calculate() (it's the parent class). Have anybody
checked the correctness of this function? 
For proper valuation i've changed the declaration of used class:
	class FDDividendEngineShiftScale : public DividendVanillaOption::engine,
FDDividendEngineBase
it's necessary for DividendVanillaOption.setPricingEngine initialization,
and added calculate() function description:
	void calculate() const {
		setupArguments(&arguments_);
		FDMultiPeriodEngine::calculate(&results_);
	}
Also i've changed condition engine to FDAmericanCondition and added another
constructor for AmericanExercise class (it's already documented):
  AmericanExercise::AmericanExercise(const Date& latestDate,
				       bool payoffAtExpiry)
    : EarlyExercise(American, payoffAtExpiry) {
        dates_ = std::vector<Date>(1, latestDate);
    }

That's all. Maybe i should do some other steps to achieve correct results?
Thanks in advance.
Andrew.
P.S i work with QuantLib 0.9.0 version

--

-- 
View this message in context: http://www.nabble.com/FDDividendEngineShiftScale-class-tp20459579p20459579.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Ferdinando Ametrano | 13 Nov 14:57

Re: Adding new functions to blackcalculator

On Thu, Nov 13, 2008 at 12:42 PM, Dima <dimathematician <at> googlemail.com> wrote:
> Ok, good. [...] So, how to proceed?
It would be better if you work on the current trunk version, so
familiarize yourself with svn and check out the trunk snapshot. See
http://quantlib.org/svn.shtml
Also please read the "Developer introduction" at
http://quantlib.org/newdeveloper.shtml

> Will I work with someone of the core
> developers of the class closely?
I am the class main developer, but a) I'm not that proud of its design
b) it's not that complex c) Luigi is THE man
Just post on the dev list and somebody will step up and help you.

> Since I wasn't sure
> what to do with the blackcalculator class.
Please take a look at the blackformula file, where you can find
(hopefully) efficient formula for price and implied vol. You might
probably consider to implement strikeForDelta as function instead of
BlackCalculator class method.
BlackCalculator is just an aggregation of less used formulae with some
common calculation factorized at construction time.
See also BlackScholesCalculator. ImpliedVol and StrikeForDelta might
be wrapped as BlackCalculator methods if needed

> It seems,
> like Asset or Nothing and Cash or Nothing options
> are dealed with in the same class. But that is something
> that would be difficult to incorporate for functions such
> as strikeForDelta, since it basically applies to vanilla
> option deltas only.
check for the payoff and throw, or if you go for the function approach
use the appropriate vanilla payoff signature

> I can do Vanna-Volga and Malz, if needed.
It would be appreciated; take a look at Sabr and/or Abcd interpolation

> Also, I'd need some guidance how
> to start with the contribution...
Feel fre to ask here on the public mailing list any further questions

ciao -- Nando

> 2008/11/13 Ferdinando Ametrano <nando <at> ametrano.net>
>>
>> Hi Dimitri
>>
>> > I'm new to this list. I'm thinking about adding new functions
>> > to the blackcalculator, which are in particular needed in the
>> > FX area. In particular, I'd like to add:
>> >
>> > - premium adjusted black scholes deltas (spot and forward)
>> > - functions, which return the strike for a given black scholes delta or
>> > ATM
>> > quotation
>>
>> this would be very much appreciated! I've been thinking about tackling
>> the last issue it's long time now, but never had the occasion.
>> BTW I've noticed that an algorithm is provided in the last version of
>> Haug Fomulas book, anyway i don't know if it is the most efficient
>> algorithm available
>>
>> As for premium adjusted black scholes deltas I'm not familiar with FX,
>> but just go ahead and document the features.
>>
>> And while there, anyone willing to provide Vanna-Volga interpolation?
>>
>> ciao -- Nando
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Dimitri Reiswich | 12 Nov 20:52

Adding new functions to blackcalculator


Hi everyone.

I'm new to this list. I'm thinking about adding new functions
to the blackcalculator, which are in particular needed in the
FX area. In particular, I'd like to add:

- premium adjusted black scholes deltas (spot and forward)
- functions, which return the strike for a given black scholes delta or ATM quotation

This would be a relatively small contribution and a small enough project
to get me started with contributing to QuantLib and learn how to contribute
code etc.

Would that be useful?


Best regards, Dima
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
1sy8 | 11 Nov 16:47

Dev. environment


Hi all.

I've seen in the tarball that a quantlib.el is shipped. For those of you who
use Emacs, could you say how is your .emacs, especially the parts about
loading quantlib.el and defining the keybindings, with ql-new-header, say ?
By the way, do you use autocompletion features in Emacs and how do you get
it up and running with Quantlib if yes ?

-----
Butterfly
--

-- 
View this message in context: http://www.nabble.com/Dev.-environment-tp20442312p20442312.html
Sent from the quantlib-dev mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Luigi Ballabio | 11 Nov 11:57

Tentative 0.9.7 tarballs


Hi all,
	tentative tarballs for the 0.9.7 release are available at
<http://quantlib.org/prerelease/>. If you have some spare cycles, please
test them, see whether they work for you, and report any problems here. 

Thanks,
	Luigi

--

-- 

Harrison's Postulate: 
For every action, there is an equal and opposite criticism. 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
SourceForge.net | 7 Nov 20:54
Favicon
Gravatar

[ quantlib-Bugs-2236225 ] Update the Dirty Flag in ObjectWrapper::reset?

Bugs item #2236225, was opened at 2008-11-07 19:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2236225&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update the Dirty Flag in ObjectWrapper::reset?

Initial Comment:
In ObjectHandler project, ObjectWrapper::reset function does not update the dirty_ flag.  This will make
the objects recreated unnecessarily.  For example, say you have objects A and B where B depends on A.  When A
is updated, B is marked as dirty.  However, if B is reset due to Excel recalc, the dirty flag is not updated. 
The later access to B will recreate B.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2236225&group_id=12740

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
SourceForge.net | 7 Nov 21:41
Favicon
Gravatar

[ quantlib-Bugs-2236525 ] Update the Dirty Flag in ObjectWrapper::reset?

Bugs item #2236525, was opened at 2008-11-07 20:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2236525&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update the Dirty Flag in ObjectWrapper::reset?

Initial Comment:
In ObjectHandler project, ObjectWrapper::reset function does not update the dirty_ flag.  This will make
the objects recreated unnecessarily.  For example, say you have objects A and B where B depends on A.  When A
is updated, B is marked as dirty.  However, if B is reset due to Excel recalc, the dirty flag is not updated. 
The later access to B will recreate B.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2236525&group_id=12740

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane