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

📄 samples.h

📁 数据挖掘经典的hierarchial clustering algorithm
💻 H
字号:
/****************************************************************
File Name: samples.h
Author: Tian Zhang, CS Dept., Univ. of Wisconsin-Madison, 1995

               Copyright(c) 1995 by Tian Zhang

                   All Rights Reserved

Permission to use, copy and modify this software must be granted
by the author and provided that the above copyright notice appear
in all relevant copies and that both that copyright notice and this
permission notice appear in all relevant supporting documentations.

Comments and additions may be sent the author at zhang@cs.wisc.edu.

******************************************************************/

#ifndef SAMPLES_H
#define SAMPLES_H

#define SAMPLES_SIZE 5

class Stat;

class Sample1 {
public:
int     size;
int     cnt;
int     ptr;
Entry   *CFS;
double  PrevA, PrevB, CurrA, CurrB;

Sample1(int s, Stat *Stats);
~Sample1();
void Take_Sample1(Stat *Stats);
void AvgRRegression(Stat *Stats);
};

class Sample2 {
public:
int     size;
int     ptr;
int     cnt;
int     *NS;
double  *FTS;
double  PrevA,PrevB,CurrA,CurrB;

Sample2(int s);
~Sample2();
void Take_Sample2(Stat *Stats);
void FtDRegression(Stat *Stats);
};

class Sample3 {
public:
int     size;
int     ptr;
int     cnt;
double  *logR;
double  *logNR;

Sample3(int s);
~Sample3();
void Take_Sample3(Stat *Stats);
double Regression(const double nr);
};


#endif SAMPLES_H

⌨️ 快捷键说明

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