Skip to content

Shortcut: VORONOI

Module matrixtools
Description Usage
Do a voronoi analysis used in 0 tutorialsused in 1 eggs
output value type
a matrix in which element ij is equal to one if the ij component of the input matrix is lower than all the ik elements of the matrix where k is not j and zero otherwise matrix

Details and examples

Do a voronoi analysis

This shortcut allows you to perform a Voronoi analysis. The input to this action is a rectangular matrix that describes the distances between two sets of points. The points for which this action is receiving distances between could be atom positions or they could represent the dissimilarities between various trajectory frames that have been stored using COLLECT_FRAMES. In the example below the matrix of input distances are distances between the positions of atoms:

Click on the labels of the actions for more information on what each action computes
tested on2.11
d: DISTANCE_MATRIXCalculate a matrix of distances between atoms. This action has hidden defaults. More details GROUPAwhen you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPB=1-10 GROUPBwhen you are calculating the adjacency matrix between two sets of atoms this keyword is used to specify the atoms along with the keyword GROUPA=11-100
v: VORONOIDo a voronoi analysis This action is a shortcut. More details ARGthe distance/adjacency matrix that should be used to perform the voronoi analysis=d
ones: ONESCreate a constant vector with all elements equal to one This action is a shortcut. More details SIZEthe number of ones that you would like to create=90
c: MATRIX_VECTOR_PRODUCTCalculate the product of the matrix and the vector More details ARGthe label for the matrix and the vector/scalar that are being multiplied=v,ones
PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=c FILEthe name of the file on which to output these quantities=colvar

The VORONOI action outputs a rectangular matrix, , with the same shape as the input matrix, . is 1 if is the shortest distance in row .

Input

The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ARG matrix the distance/adjacency matrix that should be used to perform the voronoi analysis

Full list of keywords

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARG input none the distance/adjacency matrix that should be used to perform the voronoi analysis