# Common Tips

Modules Note that from myModule import * shouldn’t be used. If done, all the global variables defined in myModule will appear in the current namespace. Modulus should not pollute each […]

# SSM Using Scalismo (5): Creating a point distribution model

Finally, I arrive at statistical shape models. I am going to create a point distribution model (PDM) of shapes. Reading some theory on the point distribution models, I need superimposed […]

# Point Distribution Models of Shapes and Forms

A point distribution model (PDM) is a model that locates (or determines the geometrical (spatial) distribution of) the points of the shapes or forms (size-and-shapes) in a particular shape or […]

# Linear Algebra Cheat Sheet (1)

0- Notations and convention A variable/quantity/element can be scalar, vector, or a matrix; its type should be understood from the context if not explicitly declared. 0-1- A vector is considered […]

# Rank of a Matrix

Let (the results also holds for ). Then, the column rank/row rank of A is defined as the dimension of the column/row space of A, i.e. the dimension of the […]

# SSM Using Scalismo (4): Generalized Procrustes analyses

In this post, I am going to implement the partial and the full generalized Procrustes analyses (partial GPA and full GPA) with Scalismo. Before getting into the implementation, I may […]

# Probability and Stats Cheat Sheet (1)

0- Conventions 1- r-Vectors in matrix operations are considered as column vectors (matrices): 2- Column vector inner/dot product: 1- Population expected value and covariance matrix 1- a random r-vector : […]

# Miscellaneous Proofs and Theorems in Probability and Statistics (1)

1- A minimization problem regarding PCA: Given that , , and and are both of full rank t, prove that the minimizing parameters, of are: where are the first eigenvectors […]

# PCA: Introduction

Different kind of inter-correlated data can be collected into a random vector. For example we would consider the total length, weight, diameter of nose holes, tail length, number of teeth, […]

# Scala with IntelliJ IDEA

1- Defining a package object On the project side bar right click on Scala folder –> new –> package. name the package custom.methods. Right click on custom.methods –>new –> package […]