码迷,mamicode.com
首页 >  
搜索关键字:double    ( 12800个结果
数学之路-python计算实战(19)-机器视觉-卷积滤波
filter2DConvolves an image with the kernel.C++: void filter2D(InputArray src, OutputArray dst, int ddepth, InputArraykernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )P...
分类:编程语言   时间:2014-07-28 00:24:39    阅读次数:294
数学之路-python计算实战(21)-机器视觉-拉普拉斯线性滤波
拉普拉斯线性锐化滤波  LaplacianCalculates the Laplacian of an image.C++: void Laplacian(InputArray src, OutputArray dst, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )P...
分类:编程语言   时间:2014-07-28 00:05:59    阅读次数:393
C中的Float分析
C/C++中, 浮点数,float以及 double 在内存中是怎样存储的?假如,我有32-bit 8bit 8bit 8bit 0 0 0 0 0 1 1 1 1 对于整形int,我们可以很快得出,这是 int...
分类:其他好文   时间:2014-07-27 23:31:49    阅读次数:382
CodeForces 16E
状态压缩 动态规划DP[111.....1]=1表示所有鱼都在的几率为10代表已经挂了的,1代表没挂;#include "stdio.h"#define max 10;i--){ int bit=bitcount(i); if(bit==1)continue; double p=2*dp[i]...
分类:其他好文   时间:2014-07-27 23:19:49    阅读次数:316
POJ2151 动态规划
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int m, t, n; 8 double dp[1005][40][40]; 9 double p[1005][40];10 double p1, p2;11 1...
分类:其他好文   时间:2014-07-27 22:44:29    阅读次数:277
amazon 汇总
1. what is hash table? how to implement in C? how to deal withconflicts? (linkedlist, linear probing, double hashing...etc)什么是hashtable, hash function...
分类:其他好文   时间:2014-07-27 22:06:19    阅读次数:310
hdu 1203 I NEED A OFFER!
http://acm.hdu.edu.cn/showproblem.php?pid=1203 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int a[20000]; 7 double b[20000],dp[2000...
分类:其他好文   时间:2014-07-27 21:34:25    阅读次数:218
【剑指offer】数值的整数次方
题目描述: 给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。 输入: 输入可能包含多个测试样例。 对于每个输入文件,第一行输入一个整数T,表示测试案例的数目,接下来的T行每行输入一个浮点数base和一个整数exponent,两个数中间用一个空格隔开。 输出: 对应每个测试案例, ...
分类:其他好文   时间:2014-07-27 11:55:23    阅读次数:189
c++ 银行管理系统及报告
#include #include using namespace std; class information { public :     string num ;//账号  string name;//用户名     string key;//密码     string ID;//身份证号     string tel;//电话号码     double money;/...
分类:编程语言   时间:2014-07-27 11:09:42    阅读次数:315
double float的精度问题
三部曲1: #include #include #include using namespace std; int main() { double a=0.0001; float b=0.1; int c=(int)(a*1000)/b; cout #inclu...
分类:其他好文   时间:2014-07-27 11:05:22    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!