ARB
Functions
Cma.cxx File Reference
#include <iostream>
#include <iomanip>
#include <time.h>
#include "Cma.h"
Include dependency graph for Cma.cxx:

Go to the source code of this file.

Functions

void unifyCluster (int cluster1, int cluster2, VectorXi &result)
 
static bool compareMITuples (MITuple first, MITuple second)
 

Function Documentation

void unifyCluster ( int  cluster1,
int  cluster2,
VectorXi &  result 
)

Helper function for Cma::computeClusters. Unites two clusters.

Parameters
cluster1the index of the first cluster.
cluster2the index of the second cluster.

Definition at line 45 of file Cma.cxx.

static bool compareMITuples ( MITuple  first,
MITuple  second 
)
static

Helper function for Cma::computeClusters. Compares MITuples by mutual information value.

Parameters
firstthe first MITuple
secondthe second MITuple
Returns
whether the first element should be placed before the second.

Definition at line 34 of file Cma.cxx.

References MITuple::MI.