Programmer Guide/Command Reference/EVAL/mapmind: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
This function implements a non-linear alignment algorithm for two parameter sets (each defined by a vector or matrix). The method minimizes the accumulated Euclidean distance of the two sets. The result is a two column matrix containing the index map of the alignment. The function also implements a method to create a mapped-copy of the sets.
This function implements a non-linear alignment algorithm for two parameter sets (each defined by a vector or matrix). The method minimizes the accumulated Euclidean distance of the two sets. The result is a two column matrix containing the index map of the alignment. The function also implements a method to create a mapped-copy of the sets.
;Usage 1:<code>mapmind(0, <var>a</var>, <var>b</var>)</code>
;Usage 1:<code>mapmind(0, <var>a</var>, <var>b</var>)</code>
:;;<var>a, b</var>:Are vectors are matrices containing the two parameter sets;
:;<var>a, b</var>:Are vectors are matrices containing the two parameter sets;
:::<code>nrow(''a'')>2, nrow(''b'')>2, ncol(''a'') = ncol(''b'')</code>
:::<code>nrow(''a'')>2, nrow(''b'')>2, ncol(''a'') = ncol(''b'')</code>
::Each row of ''a''/''b'' defines one parameter value or vector (e.g. for a frame).
::Each row of ''a''/''b'' defines one parameter value or vector (e.g. for a frame).

Revision as of 10:40, 20 April 2011

This function implements a non-linear alignment algorithm for two parameter sets (each defined by a vector or matrix). The method minimizes the accumulated Euclidean distance of the two sets. The result is a two column matrix containing the index map of the alignment. The function also implements a method to create a mapped-copy of the sets.

Usage 1
mapmind(0, a, b)
a, b
Are vectors are matrices containing the two parameter sets;
nrow(a)>2, nrow(b)>2, ncol(a) = ncol(b)
Each row of a/b defines one parameter value or vector (e.g. for a frame).
Result:

An index map for vectors a and b with the minimum distance matrix with 2 columns, 1st column is index(a), 2nd column = index(b).

The number of rows is the length of the aligned path

Usage:

map := mapmind(1, map, x)

Parameters:
map
A vector containing the index map.
x
A vector or matrix to copy or remap.
Result:

mappedX[ rows(map), columns(x) ]

Navigation menu

Personal tools