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

📄 vectorarray.c

📁 Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的挖掘。
💻 C
字号:
/*  ========================================================================  DEVise Data Visualization Software  (c) Copyright 1992-1996  By the DEVise Development Group  Madison, Wisconsin  All Rights Reserved.  ========================================================================  Under no circumstances is this software to be copied, distributed,  or altered in any way without prior permission from the DEVise  Development Group.*//*  Implementation of VectorArray class. *//*  $Id: VectorArray.c,v 1.2 1996/04/30 18:53:38 wenger Exp $  $Log: VectorArray.c,v $  Revision 1.2  1996/04/30 18:53:38  wenger  Attrproj now generates a single projection of all attributes of the  real data.  Revision 1.1  1996/04/30 15:31:55  wenger  Attrproj code now reads records via TData object; interface to Birch  code now in place (but not fully functional). */#define _VectorArray_c_//#define DEBUG#include <stdio.h>#include "VectorArray.h"#include "Util.h"#if !defined(lint) && defined(RCSID)static char		rcsid[] = "$RCSfile: VectorArray.c,v $ $Revision: 1.2 $ $State: Exp $";#endifstatic char *	srcFile = __FILE__;/*------------------------------------------------------------------------------ * function: VectorArray::VectorArray * VectorArray constructor. */VectorArray::VectorArray(int vectorCount){	DO_DEBUG(printf("VectorArray::VectorArray(%d)\n", vectorCount));	_vectorCount = vectorCount;	_vectors = new Vector[_vectorCount];}/*------------------------------------------------------------------------------ * function: VectorArray::~VectorArray * VectorArray destructor. */VectorArray::~VectorArray(){	DO_DEBUG(printf("VectorArray::~VectorArray()\n"));	delete [] _vectors;}/*------------------------------------------------------------------------------ * function: VectorArray::Init * Initialize a Vector in the VectorArray. */DevStatusVectorArray::Init(int vecNum, int vecDim){	DO_DEBUG(printf("VectorArray::Init()\n"));	DevStatus		result = StatusOk;	_vectors[vecNum].Init(vecDim);	return result;}/*------------------------------------------------------------------------------ * function: VectorArray::GetVecCount * Return the number of vectors in the array. */intVectorArray::GetVecCount(){	DO_DEBUG(printf("VectorArray::GetVecCount()\n"));	return _vectorCount;}/*------------------------------------------------------------------------------ * function: VectorArray::GetVector * Return one of the vectors. */Vector *VectorArray::GetVector(int vecNum){	DO_DEBUG(printf("VectorArray::GetVector()\n"));	return &_vectors[vecNum];}/*============================================================================*/

⌨️ 快捷键说明

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