waqqasfarooq.com

  • Increase font size
  • Default font size
  • Decrease font size
Greetings from Waqqas!


About

E-mail Print PDF

Welcome to my page!

This content management website is an attempt to organize all the work I've done over the past few years. I'll try to update this website with a lot of useful information so keep coming back to get the updates.

Also, if you have questions / suggestions then please leave a comment on the particular article.

Thanks.

 

Remove elements from std::vector and std::list

E-mail Print PDF

Often times you would want to filter out some data from your collection of a vector or a list. The following code snippet shows a quick and fool proof way of doing that:

Last Updated on Tuesday, 22 February 2011 22:24
 

Simulations Infrastructure

E-mail Print PDF

In this article I want to give out a basic reusable infrastructure for quickly starting off with simulations and reporting the results.

I will give a step-by-step setup of simulations testbed using 4 different technologies:

  1. Excel Spreadsheets
  2. Excel VBA macro
  3. Python
  4. Matlab

I believe that the best way to learn something is to bring in an application (or example) in as soon as possible. So the layout of this article will be that I will describe a fictitious 'situation' and then I will go ahead and provide a step-by-step guide as how to model the 'situation' in computer tech (e.g. matlab, python,...).

The complete source code is available in Appendix A


Last Updated on Thursday, 21 October 2010 18:50
 

Bind and find (C++ std bind2nd and find_if example)

E-mail Print PDF

STL provides us with very useful algorithms and utilities. You start enjoying the usefulness of programming when you reap the benefits of these utils. In this article I will try to show you the usefulness of the std::bind2nd function. The basic idea behind bind2nd (or bind1st) is that it will take a binary function along with one of the parameters and bind it in a function object. This function object will be then a unary function. If all this sounds confusing then don't worry too much about it. You should read these first few lines again after you go through the example and hopefully then this will all make sense.

I have a created an example to illustrate how you can use std::find_if and std::bind2nd to search through a STL collection. I've tries to keep the example simple. Please let me know if you have trouble understanding the code. In this example we will create a collection of Person and we will search through this collection.

Example Description:

Last Updated on Sunday, 07 November 2010 01:10
 

Stochastic Process

E-mail Print PDF

Stochastic process is a concept that forms the base of a lot of statistical methods used in different fields of study. This is a simple yet very powerful idea that can help us capture the random nature of problems and formulate them in mathematical notation and hence use them in different applications.

This process has many applications and is readily used in the finance, physics and mathematics. Did you know that stochastic probabilities are used in many asset pricing models and also in the heat diffusion equation? The stochastic process is the way of representing and analyzing the random behavior in the stock prices or in heat diffusion.

Last Updated on Thursday, 09 September 2010 16:19
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3