cogitolearning
March 12, 2015
C++, QuantLib, Tutorials
bonds, c++, pricing engine, quantlib
In the previous post about QuantLib Pricing engines I talked about the basic functionality of pricing engines. These are implemented by the PricingEngine and the GenericPricingEngine class. These engines provide an interface and some basic functions but the actual calculations…
Read more
cogitolearning
February 19, 2015
Android, Tutorials
android, custom, onDraw, view
When you create you own custom view you will probably give the view its own special appearance. You probably want to draw the elements of the view onto the screen somehow. This is achieved by overriding the onDraw method of…
Read more
cogitolearning
October 1, 2014
Android, Tutorials
android, custom, view
In this series of posts I will be developing a custom View and I will be taking you through all the steps necessary to develop your own custom views and making them look beautiful. For the app that I am…
Read more
cogitolearning
February 6, 2014
Android, Tutorials
android, animation, observer, tutorial
In the previous post on property animations we have come to know two types of animators. The ObjectAnimator animates a property of a single object. The AnimatorSet is a container that manages multiple Animator objects and has the functionality to…
Read more
cogitolearning
January 30, 2014
Android, Tutorials
android, animation, listener, observer, tutorial
Using Animator Listeners Animator listeners provide a powerful tool to monitor the state of animation. The animation listener implements the classic observer design pattern. The Animator.AnimatorListener interface defines a number of methods that need to be implemented. Any number of…
Read more
cogitolearning
January 23, 2014
Android, Tutorials
android, animation, tutorial
In today’s post I will be talking about controlling animation flow. Using the Animator API you can start, stop and cancel animations. A little reported addition in the Kitkat API level 19 allows you to also pause and resume animations….
Read more
cogitolearning
January 16, 2014
Android, Tutorials
android, animation, evaluator, tutorial
Until now we have been animating float or int properties only. The Property Animation System is, however, not limited to only simple numeric types. Out of the box, you can also animate ARGB colours and Rect objects by using the…
Read more
cogitolearning
January 10, 2014
Code, Manuals, QuantLib, Tutorials
boost, quantlib, random numbers
In the previous post on random number generators I introduced all the random number generators (RNGs) that are available in QuantLib. In most circumstances these generators will be sufficient. However, if you take a look at the boost/random package, you…
Read more
cogitolearning
January 9, 2014
Android, Tutorials
android, animation, builder, tutorial
The Animation Set allows you to choreograph a number of animations to play in parallel and in sequence. This gives you a great degree of artistic freedom. It also means that the standard API can get somewhat confusing if you…
Read more
cogitolearning
December 5, 2013
Android, Tutorials
android, animation, property animations, tutorial
In the previous post on property animations I introduced the ObjectAnimator to create animations on arbitrary properties on objects. The only restriction is that the object must define a setter method for the property that should be animated. ObjectAnimator extends…
Read more