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

📄 stats.h

📁 用data miming技术进行false prediction
💻 H
字号:
#ifndef STATS_H
#define STATS_H

#include <string>
#include <fstream>

using namespace std;

class Stats {
    friend ostream& operator<<(ostream& os, const Stats& rec);

    public:
        Stats(int mTBF, float probability);

        virtual ~Stats() {};

        bool operator<(const Stats& anotherStats) const;

        int getTBF() const;
        float getProbability() const;

        Stats(){};

    private:
        int mTBF;
        float mProbability;

};

inline ostream& operator<<(ostream& os, const Stats& rec) {
    os << rec.getTBF() << " " << rec.getProbability();

    return os;
};

#endif /* STATS_H */

⌨️ 快捷键说明

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