Re: [Quantlib-dev] Interpolator semantics

Posted by Joseph Wang on
URL: http://quantlib.414.s1.nabble.com/Interpolator-semantics-tp4212p4214.html

Luigi Ballabio wrote:

>
> On 11/15/2005 05:15:09 AM, Joseph Wang wrote:
>
>> I'd like to use the interpolation classes as functors, but it seems  
>> to be difficult because the operator takes both a the domain
>> variable  and an allowExtrapolation.  I could try using bind2nd but I
>> don't  think that there is an adaptable typedef there.
>
>
> Joe,
>     the extrapolation parameter is optional, so the interpolations  
> can be used as a unary function. In what way it doesn't work? Is it  
> because you do want to pass the parameter?
>
It's because I want to set extrapolate to true.  At first I thought it
would be easy to add it to C++ class, but that would break the bridge
pattern.

> Later,
>     Luigi
>
>
> ----------------------------------------
>
> Olmstead's Law:
>         After all is said and done, a hell of a lot more is said
>         than done.