# Category Archives: computer programming

## Least Square Fitting of… (1)

Affine Transformation, 2D, 4-Degrees of Freedom (a variation of the previous theme). 1. Intro What I did last time was about fitting of affine transformation of full 6-DoF.  4-DoF this time.  By 4-DoF, I mean uniform scaling, rotation and x, … Continue reading

## Least Squares Fitting of… (0)

…  Affine Transformations. Note to myself (0). 1. problem Let’s say here are 2 sets of 2D points and , .  Besides, corresponds to for each .  What I want here is a nice affine transform that maps each to … Continue reading

Posted in computer programming | Tagged | 1 Comment

## Automatic Differentiation — 2

A revision of my previous post and a write-up in Haskell. First of all the revision of C++ code: The multiplication rule holds even when or is a constant.  e.g. .  So overloaded functions for multiplication (line 22 and 31 … Continue reading

Posted in computer programming | | 3 Comments

## Automatic Differentiation

A couple of months ago, I wrote a piece of programme that computes integrals of polynomials, products of polynomials, and compositions of polynomials. It helped me a bit in that I did not need to expand complicated expressions by hand.  … Continue reading

Posted in computer programming | | 1 Comment