亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tvelement.c

?? TV-tree的c實現(xiàn)源碼
?? C
字號:
/*                    COPYRIGHT NOTICE This material was developed by Christos Faloutsos and King-Ip Linat the University of Maryland, College Park, Department of Computer Science.Permission is granted to copy this software, to redistribute iton a nonprofit basis, and to use it for any purpose, subject tothe following restrictions and understandings. 1. Any copy made of this software must include this copyright noticein full. 2. All materials developed as a consequence of the use of thissoftware shall duly acknowledge such use, in accordance with the usualstandards of acknowledging credit in academic research. 3. The authors have made no warranty or representation that theoperation of this software will be error-free or suitable for anyapplication, and they are under under no obligation to provide anyservices, by way of maintenance, update, or otherwise.  The softwareis an experimental prototype offered on an as-is basis. 4. Redistribution for profit requires the express, written permissionof the authors. */// Author : $Author$// Date : $Date$// Id : $Id$// $Id: element.C,v 1.2 1996/04/18 21:50:24 kilin Exp kilin $ #include <stdlib.h>#include <iostream.h>#include <assert.h>#include <fstream.h>#include <math.h>#include "TVdefine.h"#include "TVconstants.h"#include "TVvector.h"#include "TVelement.h"#include "TVutil.h"void _copy(char *source, char *dest, int bytes){  for (int i = 0; i < bytes; i++)     dest[i] = source[i];}Leaf_Element::Leaf_Element(){   bytearray = NULL;   noofbytes = 0;}Leaf_Element::Leaf_Element(char *barray, int bytes){   bytearray = new char[bytes];   noofbytes = bytes;   _copy(barray, bytearray, bytes);}Leaf_Element::Leaf_Element(const Leaf_Element& ele){   noofbytes = ele.noofbytes;   bytearray = new char[noofbytes];   _copy(ele.bytearray, bytearray, noofbytes);   vec = ele.vec;}Leaf_Element::~Leaf_Element(){   if (bytearray)      delete [] bytearray;   bytearray = NULL;}Leaf_Element& Leaf_Element::operator=(const Leaf_Element& ele){   if (noofbytes != ele.noofbytes)      {	 if (bytearray)            delete [] bytearray;	 bytearray = NULL;         noofbytes = ele.noofbytes;         bytearray = new char[noofbytes];      }   _copy(ele.bytearray, bytearray, noofbytes);   vec = ele.vec;   return *this;}int Leaf_Element::Size() const{   return vec.Size() + noofbytes + sizeof(int);}int Leaf_Element::ExpectedSize(int dim) const{   return vec.ExpectedSize(dim) + noofbytes + sizeof(int);}int Leaf_Element::BytearraySize() const{   return noofbytes;}TVector Leaf_Element::GetTVector(){   return vec;}Leaf_Element& Leaf_Element::DropDim(int dimtodrop){   if (dimtodrop > 0)      vec = vec.ProjectFront(vec.GetDim() - dimtodrop);   return *this;}TVector Leaf_Element::GetTVector(int dim, VCOM_TYPE (*gfeat)(int, char*), int store){  if (dim <= vec.GetDim())     return (dim ? vec.ProjectFront(dim) : vec);  else     {	TVector vnew = GenNewTVector(dim - vec.GetDim(), gfeat);	if (store)	   {		 vec <<= vnew;		 return vec;	   }	else 	   return  (vec << vnew);     }}// Get the compno-th feature // And add all the feature values to the feature vectorVCOM_TYPE Leaf_Element::GetFeature(int compno, VCOM_TYPE (*gfeat)(int, char*), int store){   assert(compno > 0);   int vdim = vec.GetDim();   if (vdim >= compno)       return vec[compno - 1];   // suppose a request of the 5th feature is made,   // but only the first 2 features have been stored,   // we will extract the 3rd-5th features.   TVector vnew = GenNewTVector(compno - vdim, gfeat);   VCOM_TYPE newcompo = vnew[compno - vdim - 1];   if (store)      vec <<= vnew;           return newcompo;}// Get the compno-th feature TVector Leaf_Element::GenNewTVector(int noofnewfeature, VCOM_TYPE (*gfeat)(int, char*)){   TVector vnew(noofnewfeature);   int vdim = vec.GetDim();   for (int i = 1; i <= noofnewfeature; i++)        vnew[i - 1] = gfeat(i + vdim, bytearray);   return vnew;}// Check equality, byte-wise compareint Leaf_Element::equal(const Leaf_Element& le, int (*eq)(char *, int, char *, int)){  return eq(bytearray, noofbytes, le.bytearray, le.noofbytes);}// return the byte arraychar* Leaf_Element::operator()(){  char *result = new char[noofbytes];    for (int i = 0; i < noofbytes; i++)      result[i] = bytearray[i];  return result;}// return distance between two elementsfloat Leaf_Element::Distance(const Leaf_Element& le, float (*dist)(char *, int, char *, int)){   return dist(bytearray, noofbytes, le.bytearray, le.noofbytes);}/*Leaf_Element& Leaf_Element::PreCompute(int compcount, VCOM_TYPE (*gfeat)(int, char*)){   assert(compcount > 0);   // suppose a request of the 5th feature is made,   // but only the first 2 features have been stored,   // we will extract the 3rd-5th features.   vec <<= GenNewTVector(compcount, gfeat);   return *this;}*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费电影视频| 国产麻豆91精品| 欧美亚洲一区二区三区四区| 亚洲一区欧美一区| 欧美一级二级在线观看| 国产91富婆露脸刺激对白| 一区av在线播放| 精品国产一区二区国模嫣然| 日本久久精品电影| 国产精一区二区三区| 亚洲一区二区3| 五月天丁香久久| 国产精品久久久久毛片软件| 69堂成人精品免费视频| 99久久精品一区| 国产精品18久久久久久久久久久久| 男男gaygay亚洲| 夜夜爽夜夜爽精品视频| 亚洲电影第三页| 亚洲视频网在线直播| 国产夜色精品一区二区av| 在线成人高清不卡| 欧美在线一区二区| 91视频一区二区三区| 国产成人精品免费视频网站| 美女尤物国产一区| 同产精品九九九| 精品一区二区三区香蕉蜜桃| 日本欧美肥老太交大片| 亚洲国产cao| 亚洲自拍与偷拍| 九一九一国产精品| 91在线云播放| 欧美一级欧美三级| 日韩精品一区二区在线观看| 欧美一区二区三级| 国产精品免费丝袜| 国产精品私人影院| 丝袜美腿高跟呻吟高潮一区| 亚洲国产人成综合网站| 蜜臀av性久久久久av蜜臀妖精| 成人黄页毛片网站| 99久久99久久精品国产片果冻| 欧美精品tushy高清| 欧美国产乱子伦| 亚洲欧美偷拍另类a∨色屁股| 亚洲少妇屁股交4| 狠狠色狠狠色合久久伊人| 美女视频黄a大片欧美| 99久久久国产精品免费蜜臀| 日韩欧美一二区| 香蕉av福利精品导航| 豆国产96在线|亚洲| 日韩一区二区三| 一区二区欧美视频| 成人av免费在线观看| 精品久久一二三区| 国产精品人人做人人爽人人添 | 美女视频免费一区| 色香蕉久久蜜桃| 欧美一区二区三区色| 一区二区三区小说| 99国产精品国产精品久久| 久久久国产午夜精品 | 成人av在线资源| 欧美zozo另类异族| 三级久久三级久久| 欧洲视频一区二区| 亚洲视频一区在线| av欧美精品.com| 91精品黄色片免费大全| 国产女人18毛片水真多成人如厕| 一片黄亚洲嫩模| voyeur盗摄精品| 天堂一区二区在线| 国产三级一区二区三区| 在线精品视频一区二区三四| 精品一区二区国语对白| 亚洲色欲色欲www| 日韩精品一区二区三区swag| 99r国产精品| 久久激情五月激情| 精品国产成人在线影院| 在线观看亚洲一区| 国产精品888| 蜜桃av一区二区| 亚洲一区二区三区在线播放| 国产视频911| 日韩一区二区三区av| 在线观看网站黄不卡| 国产一区福利在线| 日本欧美加勒比视频| 一区二区三区四区高清精品免费观看 | 亚洲日本在线天堂| 久久精品夜色噜噜亚洲a∨| 欧美日韩国产123区| 捆绑变态av一区二区三区| 一区二区三区四区在线| 国产精品毛片久久久久久| 精品国产123| 日韩欧美一区中文| 欧美日韩免费一区二区三区| 久久精品国产第一区二区三区| 亚洲国产精品久久久男人的天堂| 中文字幕高清一区| 国产日韩欧美综合一区| 欧美成人猛片aaaaaaa| 欧美精三区欧美精三区| 欧美性猛交xxxx黑人交| 色偷偷一区二区三区| 9久草视频在线视频精品| 国产91在线看| 国产成人av一区二区三区在线| 韩国欧美国产一区| 久久国内精品自在自线400部| 日本aⅴ亚洲精品中文乱码| 日本亚洲免费观看| 捆绑调教美女网站视频一区| 毛片av中文字幕一区二区| 蜜臀av性久久久久蜜臀aⅴ| 青娱乐精品在线视频| 免费高清在线视频一区·| 免费亚洲电影在线| 久久99精品国产麻豆婷婷洗澡| 久久爱www久久做| 国产激情偷乱视频一区二区三区| 国产一区二区三区在线观看精品| 国产中文一区二区三区| 国产精品夜夜爽| 成人动漫一区二区三区| a在线欧美一区| 色婷婷国产精品综合在线观看| 在线中文字幕一区| 91精品婷婷国产综合久久性色| 日韩三级av在线播放| 2023国产精华国产精品| 欧美疯狂性受xxxxx喷水图片| 欧美精品成人一区二区三区四区| 91精品国产欧美日韩| 久久综合久久99| 成人免费视频在线观看| 中文字幕二三区不卡| 尤物视频一区二区| 亚洲日本欧美天堂| 爽好久久久欧美精品| 久久99在线观看| 不卡av免费在线观看| 91国产视频在线观看| 欧美一区二区三区思思人| 久久久高清一区二区三区| 亚洲乱码国产乱码精品精小说| 五月激情六月综合| 国产黄色精品网站| 欧美色手机在线观看| 久久日一线二线三线suv| 亚洲免费大片在线观看| 蜜臀av性久久久久av蜜臀妖精| 成人永久免费视频| 欧美精品日韩一本| 国产精品久久久久影院亚瑟 | 精品区一区二区| 中文字幕一区二区在线播放 | 捆绑紧缚一区二区三区视频| www.综合网.com| 欧美一区二区高清| 亚洲欧美国产77777| 韩国av一区二区三区四区| 色av一区二区| 久久久www成人免费无遮挡大片 | 久久久蜜桃精品| 首页综合国产亚洲丝袜| 99re这里只有精品6| 精品国产成人在线影院 | 日本系列欧美系列| 99久久99久久久精品齐齐| 欧美大片顶级少妇| 亚洲一区二区三区四区的| 成人性生交大合| 精品久久国产老人久久综合| 亚洲国产sm捆绑调教视频 | 久久新电视剧免费观看| 天天综合网天天综合色| 色综合久久精品| 国产精品欧美精品| 韩国欧美一区二区| 日韩欧美一二三| 日韩精品欧美精品| 欧美日韩在线精品一区二区三区激情| 国产精品视频第一区| 国产一区二区日韩精品| 欧美videos中文字幕| 日韩福利电影在线| 欧美日韩国产电影| 亚洲高清免费视频| 欧美专区日韩专区| 亚洲六月丁香色婷婷综合久久 | 欧美日韩国产美| 夜夜精品浪潮av一区二区三区| 99在线视频精品| 日本不卡1234视频|