Re: Surface interface

Posted by Joseph Wang-2 on
URL: http://quantlib.414.s1.nabble.com/Surface-interface-tp11372p11373.html

There is something that would be very useful would be if you could find or
point me to an example using VTK or mayavi which draws a surface and a
scatterplot using the python interface.

VTK has a really steep learning curve, and if you can post "hello world" in
VTK that would be very useful.

Thinking though the design a bit.  What I was thinking of doing is to use the
TimeSeries template and create a TimeSeries of sampled curves or a TimeSeries
of functions.  This could then be inserted into an interpolator which would
return a surface which could be plotted by an external function.

There also may be a need for a Curve object that does the same thing as
Surface (i.e. provide an external standard interface for 1-d objects).  Curve
would require an Interval.

The way that I was thinking of moving forward was to create a TestSurface
object which just plots a 2-d sinusodial function.  Get the SWIG bindings
working, and then try to use that Surface to plot a hello world surface.  
Once I can see what I'm doing, then we can attach the Surface object to the
rest of QuantLib and start ploting volatility surfaces or interest rate yield
curves.

--
-------------------------------------------------------------------------------
Joseph Wang Ph.D. - [hidden email]  
China Derivatives Researcher and Software Developer - QuantLib
http://en.wikiversity.org/wiki/User:Roadrunner