# Finance: Binomial Lattice

Option pricing is the problem of computing the expected present value of a financial instrument (most usually stocks, but also interest rates, foreign exchange rates, bonds, etc). This is based on a forecast of cashflows over a specific time horizon. The expected present value is used to determine the fair premium of an option on that instrument. The Binomial (Tree or Lattice) option pricing model is a confluent discretization of a Brownian motion process. Note that for a large number of steps the binomial distribution approximates a Gaussian distribution.

# Image Processing: Averaging Filter

An Averaging filter is a commonly used filter in the field of image processing and is mainly used for removing any noise in a given image. A noise in an image is any presence of pixel values which doesn’t blend well with the actual content of photo like salt-pepper grains on an image. Averaging filter makes use of the concept that any given pixel value will not change drastically from its immediate neighbors. In other words, the current value of a pixel depends more on its immediate neighbors.

# Stencil: RTM Stencil

Stencil computation is the basis for the Reverse Time Migration algorithm in seismic computing. The underlying mathematical problem is to solve the wave equation using a finite difference method. This sample computes a 3-D 25-point stencil. The computation contains 4 layer loops for each dimention and time duration. One methodology runs in straight scalar code, one using Intel® Cilk™ Plus `pragma simd` to allow the code to vectorize, one using `cilk_spawn` to include parallelization, and one with both.

# The switch() statement isn't really evil, right?

In my current position, I work to optimize and parallelize codes that deal with genomic data, e.g., DNA, RNA, proteins, etc. To be universally available, many of the input files holding DNA samples (called reads) are text files full of the characters 'A', 'C', 'G', and 'T'.

# Flood Puzzle Game

Flood is a simple puzzle game implemented as a Single Page App written using HTML/CSS/JS. The object of the game is to flood the entire field with any one color. The flood starts with the top left corner and any adjacent squares that are the same color. When another color is touched (or clicked) the top left flood changes to the new color, and any adjacent squares become part of the flood. The number at the bottom of the screen shows the number of steps so far. Flood was written to demonstrate several programming techniques and language features.
• Game Development
• HTML5
• HTML5
• Intermediate
• Intel® XDK
• # Porting Counting Beads Web App to Android* using PhoneGap* compatible API and Windows 8* Store App

Counting Beads app is originally a web HTML5 app and downloadable from Tizen* developers site. The final version can be downloaded from github sample-counting-beads, or register the Intel® XDK to check out all the HTML5 samples.
• Android* OS
• Microsoft Windows* 8.x
• Tizen*
• HTML5
• HTML5
• Intel® XDK
• Microsoft Windows* 8 Style UI
• # Behind the Scenes: Rolling Stone Project Code

by Todd Motto

This article talks through some of my thinking and workflow behind my collaboration on the Rolling Stone project: The Geeks on the Front Lines.

I’m also happy to announce that we just publicly released the code for the project. Check it out:

# RPN Calculator

RPN Calculator is an HTML/CSS/JS app that provides a functioning calculator using Reverse Polish Notation, as was common on classic HP calculators. In addition to basic calculator functionality, this app provides a theming option that demonstrates the power of CSS3 for controlling the look and feel of an HTML based app.
• HTML5
• HTML5
• Intermediate
• Intel® XDK
• # jQuery Mobile - Tab Navigation

This sample is a multi-page scaffold using tab-based navigation. For other page navigation styles, please see the list- and springboard-based navigation samples. Additionally, this sample demonstrates how to create a custom options menu widget that maintains state across page transitions, and how to dynamically inject widgets into the DOM.
• HTML5
• HTML5
• Intermediate
• Intel® XDK
• # Towers of Hanoi using jQuery and CSS

This article describes the design and implementation of a simple Towers of Hanoi 'game.' The game provides a graphical animation that moves discs from the leftmost pin to the rightmost pin. The user controls the speed of the animation and how many discs to use.This app was written using 'portable' HTML5 and runs in all major browsers. This makes it easy to create a hybrid version of the app, i.e. a native webview wrapped version.

• HTML5
• HTML5
• Intel® XDK