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

📄 unitarray_second.cpp

📁 模式识别程序
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unitarray_second.h"
#include "UnitKL.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm_array_second *Form_array_second;
//---------------------------------------------------------------------------
__fastcall TForm_array_second::TForm_array_second(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm_array_second::Button1Click(TObject *Sender)
{
/*VEC=10;
StringGrid_array_second->Cells[0][0]="聚类(迭代)次数";
StringGrid_array_second->Cells[1][0]="分类个数(i)";
StringGrid_array_second->Cells[2][0]="每一类的样本个数" ;
  for(int i=0;i<27;i++)
  {
   StringGrid_array_second->Cells[i+3][0]="每一类的样本列举"+IntToStr(i+1);
  }
  for(int j=0;j<VEC;j++)
  {
   StringGrid_array_second->Cells[30+j][0]="聚类中心"+IntToStr(j+1);
  }


     //第一次
for(int i=0;i<27;i++)
{
 for(int j=0;j<VEC;j++)
 {
 data_in[i*VEC+j]=Form_KL->data_cc[i*VEC+j];
 }
}
 Public_math->Arraycollection(data_in,VEC);
 for(int i=0;i<18;i++)
 {
   StringGrid_array_second->Cells[0][i*9+1]="第"+IntToStr(i+1)+"次聚类";
   StringGrid_array_second->Cells[1][i*9+1]="分成"+IntToStr(num_Nc[i])+"类";
   if(IntToStr(num_Nc[i])==0) StringGrid_array_second->Cells[1][i*9+1]="";
   for(int j=0;j<9;j++)
   {
     StringGrid_array_second->Cells[2][i*9+j+1]="共"+IntToStr(num_Nc_num[i][j])+"数据样本";
     if(IntToStr(num_Nc_num[i][j])==0) StringGrid_array_second->Cells[2][i*9+j+1]="";
     for(int m=0;m<27;m++)
     {
        StringGrid_array_second->Cells[m+3][i*9+j+1]="第"+IntToStr(enumerate[i][j][m])+"个数据样本";
        if(IntToStr(enumerate[i][j][m])==0) StringGrid_array_second->Cells[m+3][i*9+j+1]="";
     }
    for(int h=0;h<VEC;h++)
     {
        StringGrid_array_second->Cells[30+h][i*9+j+1]=Center[i][j].x[h];
       // if(StrToFloat(StringGrid_array->Cells[30+h][i*9+j+1])==0.0) StringGrid_array->Cells[30+h][i*9+j+1]="";
     }
  }
 }*/

}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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