ProcrustesAnalysis Class |
Namespace: Accord.Statistics.Analysis
The ProcrustesAnalysis type exposes the following members.
Name | Description | |
---|---|---|
ProcrustesAnalysis |
Creates an empty Procrustes Analysis object
| |
ProcrustesAnalysis(Double) |
Creates a Procrustes Analysis object using the given sample data
|
Name | Description | |
---|---|---|
ProcrustedDatasets |
Procrusted models produced from the computed sample data
| |
ProcrustesDistances |
Procrustes Distances of the computed samples
|
Name | Description | |
---|---|---|
Compute |
Compute the Procrustes analysis to extract Procrustes distances and models using the constructor parameters
| |
Compute(Double) |
Compute the Procrustes analysis to extract Procrustes distances and models
| |
Compute(Int32, Double) |
Compute the Procrustes analysis to extract Procrustes distances and models by specifying the reference dataset
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
Procrustes analysis is a form of statistical shape analysis used to analyze the distribution of a set of shapes. It allows to compare shapes (datasets) that have different rotations, scales and positions. It defines a measure called Procrustes distance that is an image of how different the shapes are.
References:
// This examples shows how to use the Procrustes Analysis on basic shapes // We're about to demonstrate that a diamond with four identical edges is also a square ! // Define a square double[,] square = { { 100, 100 }, { 300, 100 }, { 300, 300 }, { 100, 300 } }; // Define a diamond with different orientation and scale double[,] diamond = { { 170, 120 }, { 220, 170 }, { 270, 120 }, { 220, 70 } }; // Create the Procrustes analysis object ProcrustesAnalysis pa = new ProcrustesAnalysis(square, diamond); // Compute the analysis on the square and the diamond pa.Compute(); // Assert that the diamond is a square Debug.Assert(pa.ProcrustesDistances[0, 1].IsEqual(0.0, 1E-11)); // Transform the diamond to a square double[,] diamond_to_a_square = pa.ProcrustedDatasets[1].Transform(pa.ProcrustedDatasets[0]);