﻿ConnectivityMatrix Class
Class ConnectivityMatrix represents a symmetric matrix of double-precision floating point values.

Namespace: CenterSpace.NMath.Stats

# Syntax

C#
[SerializableAttribute]
public class ConnectivityMatrix : DoubleSymmetricMatrix
Visual Basic
<SerializableAttribute> _
Public Class ConnectivityMatrix _
Inherits DoubleSymmetricMatrix
Visual C++
[SerializableAttribute]
public ref class ConnectivityMatrix : public DoubleSymmetricMatrix

# Remarks

The i, j entry represents the strength of connectivity between the variables i and j.
A symmetric matrix is equal to its transpose. In other words, A[i,j] = A[j,i] for all elements i,j in matrix A.
The matrix is stored in a vector column by column. For efficiency, only the upper triangle is stored. For example, the following 5 by 5 symmetric matrix:
| a00 a01 a02 a03 a04 |
| a10 a11 a12 a13 a14 |
A = | a20 a21 a22 a23 a24 |
| a30 a31 a32 a33 a34 |
| a40 a41 a42 a43 a44 |

is stored in a data vector v as:
v = [a00 a01 a11 a02 a12 a22 a03 a13 a23 a33 a04 a14 a24 a34 a44 ]

In general, A[i,j] = v[j(j+1)/2+i], i<=j v[i(i+1)/2+j], j<i