frequentitemset.h

来自「用data miming技术进行false prediction」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef FREQUENT_ITEMSET_H
#define FREQUENT_ITEMSET_H

#include <iostream>
#include <string>
#include "boost/algorithm/string.hpp"

#include "AppException.h"

using namespace std;
using namespace boost;

class FrequentItemset {
    friend ostream& operator<<(ostream& os, const FrequentItemset& item);

    public:
        //FrequentItemset() {};
        FrequentItemset(string name, int count);

        virtual ~FrequentItemset() {};

        string getName() const;
        int getCount() const;
        int getSize() const;

    private:
        string mName;
        int mCount;
        int mSize;
        int getFICount(string str) const;

};

inline ostream& operator<<(ostream& os, const FrequentItemset& item) {
    os << item.getName();
    os << ": " << item.getCount() << " : " << item.getSize();

    return os;
};

#endif /* FREQUENT_ITEMSET_H */

⌨️ 快捷键说明

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