Add comment to spanning tree method
This commit is contained in:
parent
3f09d474f9
commit
002aa30672
@ -116,11 +116,18 @@ namespace bayesnet {
|
||||
{
|
||||
return entropy(firstFeature) - conditionalEntropy(firstFeature, secondFeature);
|
||||
}
|
||||
/*
|
||||
Compute the maximum spanning tree considering the weights as distances
|
||||
and the indices of the weights as nodes of this square matrix using
|
||||
Kruskal algorithm
|
||||
*/
|
||||
vector<pair<int, int>> Metrics::maximumSpanningTree(Tensor& weights)
|
||||
{
|
||||
auto result = vector<pair<int, int>>();
|
||||
// Compute the maximum spanning tree considering the weights as distances
|
||||
// and the indices of the weights as nodes of this square matrix
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user