The Pivot MDS (multi-dimensional scaling) layout algorithm.
More...
#include <ogdf/energybased/PivotMDS.h>
|
| static const int | DIMENSION_COUNT = 2 |
| | The dimension count determines the number of evecs that will be computed. Nevertheless PivotMDS only takes the first two with the highest eigenwert into account. More...
|
| |
| static const double | EPSILON |
| | Convergence factor used for power iteration. More...
|
| |
| static const double | FACTOR |
| | Factor used to center the pivot matrix. More...
|
| |
| static const unsigned int | SEED = 0 |
| | Seed of the random number generator. More...
|
| |
The Pivot MDS (multi-dimensional scaling) layout algorithm.
Definition at line 57 of file PivotMDS.h.
◆ PivotMDS()
| ogdf::PivotMDS::PivotMDS |
( |
| ) |
|
|
inline |
◆ ~PivotMDS()
| virtual ogdf::PivotMDS::~PivotMDS |
( |
| ) |
|
|
inlinevirtual |
◆ call()
◆ centerPivotmatrix()
| void ogdf::PivotMDS::centerPivotmatrix |
( |
Array< Array< double > > & |
pivotMatrix | ) |
|
|
private |
Centers the pivot matrix.
◆ copySPSS()
| void ogdf::PivotMDS::copySPSS |
( |
Array< double > & |
copyTo, |
|
|
NodeArray< double > & |
copyFrom |
|
) |
| |
|
private |
◆ doPathLayout()
Computes the layout of a path.
◆ eigenValueDecomposition()
| void ogdf::PivotMDS::eigenValueDecomposition |
( |
Array< Array< double > > & |
K, |
|
|
Array< Array< double > > & |
eVecs, |
|
|
Array< double > & |
eValues |
|
) |
| |
|
private |
Computes the eigen value decomposition based on power iteration.
◆ getPivotDistanceMatrix()
Computes the pivot distance matrix based on the maxmin strategy.
◆ getRootedPath()
| node ogdf::PivotMDS::getRootedPath |
( |
const Graph & |
G | ) |
|
|
private |
Checks whether the given graph is a path or not.
◆ normalize()
| double ogdf::PivotMDS::normalize |
( |
Array< double > & |
x | ) |
|
|
private |
◆ pivotMDSLayout()
Computes the pivot mds layout of the given connected graph of GA.
◆ prod()
| double ogdf::PivotMDS::prod |
( |
const Array< double > & |
x, |
|
|
const Array< double > & |
y |
|
) |
| |
|
private |
Computes the product of two vectors x and y.
◆ randomize()
| void ogdf::PivotMDS::randomize |
( |
Array< Array< double > > & |
matrix | ) |
|
|
private |
Fills the given matrix with random doubles d 0 <= d <= 1.
◆ selfProduct()
| void ogdf::PivotMDS::selfProduct |
( |
const Array< Array< double > > & |
d, |
|
|
Array< Array< double > > & |
result |
|
) |
| |
|
private |
Computes the self product of d.
◆ setEdgeCosts()
| void ogdf::PivotMDS::setEdgeCosts |
( |
double |
edgeCosts | ) |
|
|
inline |
Sets the desired distance between adjacent nodes. If the new value is smaller or equal 0 the default value (100) is used.
Definition at line 71 of file PivotMDS.h.
◆ setNumberOfPivots()
| void ogdf::PivotMDS::setNumberOfPivots |
( |
int |
numberOfPivots | ) |
|
|
inline |
Sets the number of pivots. If the new value is smaller or equal 0 the default value (250) is used.
Definition at line 65 of file PivotMDS.h.
◆ singularValueDecomposition()
| void ogdf::PivotMDS::singularValueDecomposition |
( |
Array< Array< double > > & |
K, |
|
|
Array< Array< double > > & |
eVecs, |
|
|
Array< double > & |
eVals |
|
) |
| |
|
private |
Computes the singular value decomposition of matrix K.
◆ useEdgeCostsAttribute() [1/2]
| void ogdf::PivotMDS::useEdgeCostsAttribute |
( |
bool |
useEdgeCostsAttribute | ) |
|
|
inline |
◆ useEdgeCostsAttribute() [2/2]
| bool ogdf::PivotMDS::useEdgeCostsAttribute |
( |
| ) |
const |
|
inline |
◆ DIMENSION_COUNT
| const int ogdf::PivotMDS::DIMENSION_COUNT = 2 |
|
staticprivate |
The dimension count determines the number of evecs that will be computed. Nevertheless PivotMDS only takes the first two with the highest eigenwert into account.
Definition at line 92 of file PivotMDS.h.
◆ EPSILON
| const double ogdf::PivotMDS::EPSILON |
|
staticprivate |
Convergence factor used for power iteration.
Definition at line 95 of file PivotMDS.h.
◆ FACTOR
| const double ogdf::PivotMDS::FACTOR |
|
staticprivate |
Factor used to center the pivot matrix.
Definition at line 98 of file PivotMDS.h.
◆ m_edgeCosts
| double ogdf::PivotMDS::m_edgeCosts |
|
private |
The costs to traverse an edge.
Definition at line 107 of file PivotMDS.h.
◆ m_hasEdgeCostsAttribute
| bool ogdf::PivotMDS::m_hasEdgeCostsAttribute |
|
private |
Tells whether the pivot mds is based on uniform edge costs or a edge costs attribute.
Definition at line 111 of file PivotMDS.h.
◆ m_numberOfPivots
| int ogdf::PivotMDS::m_numberOfPivots |
|
private |
◆ SEED
| const unsigned int ogdf::PivotMDS::SEED = 0 |
|
staticprivate |
Seed of the random number generator.
Definition at line 101 of file PivotMDS.h.
The documentation for this class was generated from the following file: