

. | SplitGraph | ( | Graph & | G, | |
| int | numclasses, | |||
| int | maxdim, | |||
| int | usedDistance | |||
| ) | [inline] |
| ~SplitGraph | ( | ) | [inline] |
Destructor.
| void ComputeMaxDistance3d | ( | ) |
| void NewClass | ( | int | dimension, | |
| int | worst | |||
| ) |
Creates a new class.
| dimension | Current space dimension | |
| worst | Index of the point used as a representative for the new class |
| void ComputeProjectDistance | ( | int | dimension | ) |
Computes projective distance.
| void SearchFarVertices | ( | int | dimension | ) |
Partitions into 2 initial classes and computes projective distance.
| void SearchWorst | ( | int | dimension, | |
| int & | worst | |||
| ) |
Searches worst represented point.
| dimension | Current space dimension | |
| worst | Index of the worst represented point (returned value) |
| void AffectExtrems | ( | int | extrem0, | |
| int | extrem1 | |||
| ) |
Partitions into 2 classes with given representatives.
| void BuildClasses | ( | int | dimension, | |
| double & | inertie, | |||
| int & | worst | |||
| ) |
Builds classes from the barycenters.
| void Optimize | ( | int | dimension, | |
| int & | worst, | |||
| double & | inertie | |||
| ) |
Representative affectation optimization.
| void ComputeBarycenters | ( | int | dimension | ) |
Computes the barycenters of the classes.
| double TotalInertia | ( | double & | ClassVarianceNumber | ) |
Computes the total inertia of the partition.
| int Segment | ( | ) |
Computes the requested partition.
| void init | ( | ) | [private] |
| svector<int> ClassNumber |
Class index of a vertex.
Cardinality of the classes.
| int NumberOfClasses |
Requested number of classes.
| int MinDimension |
Minimum dimension to be used for optimization.
Fixed to
by init()
| int MaxDimension |
Maximum dimension to be used for optimization.
Actually fixed to
by init()
Current number of classes
1.5.4