⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kcutility.h

📁 clique code with sample data set. clique is a data clustering algorithm which follows hierarchical c
💻 H
字号:
#ifndef _KCUTILITY_H_
#define _KCUTILITY_H_

#include <iostream>
#include "KCGlobal.h"
#include "KCArray.h"

using namespace std;

void readMapping(const char* mapFile, const int attributes, const int maxValues);

ostream& operator<<(ostream& out, KCCliqueDim& c);
ostream& operator<<(ostream& out, KCClique& c);
ostream& operator<<(ostream& out, KCCliques& c);
ostream& operator<<(ostream& out, set<int>& c);
ostream& operator<<(ostream& out, vector<int>& c);
//ostream& operator<<(ostream& out, KCTransactionSet& c);

template<class T>
ostream& operator<<(ostream& out, KCSymArray<T>& o)
{
  int i, j;

  out << "Symmetric 2D Array (size " << o.getNumberOfDimensions() 
      << " X " << o.getNumberOfDimensions() << ")" << endl;

  for (i = 0; i < o.getNumberOfDimensions(); i++)
    for (j = 0; j < o.getNumberOfDimensions(); j++)
      out << "V(" << i << " " << j << ") : " << o.getValueSafe(i,j) << endl;

  
  return out;
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -