- 博客(4)
- 收藏
- 关注
转载 算法定义及其主要特征
算法的定义: 算法(Algorithm)是指解题方案的准确而完整的描述,是一系列解决问题的清晰指令一个算法应该具有以下五个重要的特征:1、有穷性(Finiteness) 算法的有穷性是指算法必须能在执行有限个步骤之后终止2、确切性(Definiteness) 算法的每一步骤必须有确切的定义;3、输入项(Input) 一个算法有0个或多个输入,以刻画运算对象的初始情况,所谓0
2015-08-12 11:58:17 6220
原创 LeetCode No2--Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe
2015-07-05 14:42:09 598
转载 ROC曲线和AUC面积计算 matlab
在网上看到的程序,粘贴在自己的博客中,以备以后用后用到了好查找:function [auc, curve] = ROC(score, target, Lp, Ln)% This function is to calculat the ordinats of points of ROC curve and the area% under ROC curve(AUC).% This
2014-12-03 11:17:08 7504
原创 将一个float型的数组赋予IplImage类型的imagedata
本人是菜鸟, ganggan //IplImage *face = cvCreateImage(cvSize(faceWidth,faceHeight),8,1); //for (int i = 0;iheight;i++) //{ // uchar *p = (uchar *)face->imageData+i*face->widthStep; // for(in
2014-05-07 11:41:26 865
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人