自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Keep Learning

学习Spark、CarbonData 、Alluxio等,且为其Contributor,Github为:https://github.com/xubo245。欢迎微信联系601450868!

  • 博客(28)
  • 资源 (23)
  • 收藏
  • 关注

原创 个人所得税计算代码

#includeint main(void){ int d=0; float tax=0,r=0; int s; printf("enter s:"); scanf("%d",&s); //printf("%d\n",s); if(s<=3500){r=0,d=0;} else if(s>3500&s<=5000){r=0.03;d=0;} else if(50

2013-10-22 21:54:57 3900 1

原创 Evaluation:正确率P、召回率R、F值、P@4和平均正确率AP,MAP值等

Chp.7 Evaluation (10.22)假设现在有2个检索系统S1和S2,它们在文档集上分别执行查询Q1和Q2,均返回了5个结果,如下表所示:系统&查询12345S1,Q1d3 d5 d8d10d11

2013-10-21 20:50:46 4047

原创 tf-idf权值的向量表示、余弦相似度

PB10210016  徐波-第五次作业Chp.6 Ranking (10.15)假定已知文档d1和d2和查询q的词项以及词频如下:d1:(,世博会,3>,中国,1>,举行,1>) d2:(,世博会,2>,,日本,1>,举行,1>)q:(,世博会,2>)请给出文档d1、d2以及查询q的基于tf-idf权值的向量表示,然后分别计算q和d1、d2的余弦相似度,并说明q和哪个文档更相

2013-10-21 20:48:59 3557 2

原创 Rocchio 1971算法进行相关性反馈题目

PB10210016  徐波-第四次作业Chp.5 Queries (10.8)1.假定初始查询Q为“extremly cheap DVDs cheap CDs”。文档d1包含词项“cheap CDs cheap software cheap DVDs”,文档d2包含“cheap thrills DVDs”。用户标记d1为相关文档,d2为不相关文档。假定我们直接使用词项频率作为文档向量中词项的

2013-10-21 20:48:01 2806

原创 倒排索引和term-document关联矩阵

Web信息处理第三次作业PB10210016徐波考虑下面的文档:    Doc 1    new home sales top forecasts     Doc 2    home sales rise in july     Doc 3    increase in home sales in july     Doc 4    july new home sales 

2013-10-21 20:47:10 3927

原创 FMM和BMM分词题目

题目:假设词典中包括词{的确,王公,实在,在理,公子}以及所有单字集合,请分别给出句子“王公子说的确实在理”的FMM和BMM分词结果。 FMM分词结果:王公/子/说/的确/实在/理BMM分词结果:王/公子/说/的/确实/在理  PB10210016_徐波_第二题分词

2013-10-21 20:45:58 3269 1

原创 调研目前主要的开源网络爬虫,并且说明各自的特点、局限性以及相互之间的区别

PB10210016徐波-第一次作业Chp.2 Web Crawling调研目前主要的开源网络爬虫,并且说明各自的特点、局限性以及相互之间的区别。提交方式:word打印稿。答:网络蜘蛛(Web spider)也叫网络机器人,指的是“自动化浏览网络”的程式。这样的电脑程式是为了自动从网络撷取特定的资料,或为了组织网络上的资料,所设计的自动浏览网络的程式。Spider只是个别爬虫的名称。业

2013-10-21 20:45:10 10954

原创 Web信息处理--Web Information Processing and Applications

Web Information Processing and Applications    Instructor Jin Pei-Quan(金培权)       Xu Lin-Li (徐林莉)Email: jpq@ustc.edu.cn           Email:linlixu@ustc.edu.cn   Teaching Assistant

2013-10-21 20:44:07 1785 2

原创 从1到任意数的平方根

从1到任意数的平方根:最大数可超过百万。 #include#include int main(void){ double x, y; printf("请输入需要开方到的数:"); scanf("%lf",&x); for(y=1;y<=x;y=y+1){ printf("%lf的平方根是%lf\n", y, pow(y,0.5)); } r

2013-10-21 15:57:12 2784 1

原创 2的任意次方

2的任意次方,能计算到2的1023次方。但在2的57次方后就不精确。  #include#include int main(void){ double x, y; printf("请输入需要计算2的次方:"); scanf("%lf",&x); for(y=1;y<=x;y=y+1){ printf("2的%.0lf次方是%.0lf\n", y, pow(2,y

2013-10-21 15:45:38 10411 2

原创 任意数开根号的代码

任意数开根号的代码。开方。高中必修。 #include#include int main(void){ double x, y; printf("请输入被开方数:"); scanf("%lf",&x); printf("\n%lf的开根号是%lf\n\n\n", x, pow(x,0.5)); return 0;}测试:9测试结果:

2013-10-21 15:29:11 11178

原创 高中必修一根式的处理(包括开方)

高中必修一根式的处理(包括开方)。指数函数。幂函数  #include#include int main(void){    double x, y; printf("请输入被开方数:"); scanf("%lf",&x); printf("请输入根指数:"); scanf("%lf",&y);    printf("\n%lf的%lf次方根是%lf

2013-10-21 15:24:10 1403

原创 高中必修的指数函数代码

任意指数函数、幂函数的处理。高中必修的指数函数代码,处理范围广: #include#include int main(void){ double x, y; printf("请输入底数:"); scanf("%lf",&x); printf("请输入幂:"); scanf("%lf",&y); printf("\n%lf的%lf次幂是%lf\n\n\n",

2013-10-21 15:17:23 1678

原创 集合:求A、B两个集合的交集、并集和补集的代码(C语言)

集合:求A、B两个集合的交集、并集和补集的代码(C语言)  #include #define N 100main(){ int a[N],b[N],c[N],d[N]; int aa[N],bb[N]; int i,j,k=1; int x=1,y=1,z; int m,n; int flag; printf("please input Number of A:\n"

2013-10-21 14:59:18 51444 1

原创 一元二次方程求解

一元二次方程求解,输入a、b、c,即可判断一元二次方程是否有实数解,如果有,会输出解。 # include # include void main(){ float a,b,c; printf("请输入3个值\n"); scanf("%f%f%f",&a,&b,&c); float delta; float x1; float x2; de

2013-10-20 23:21:58 2004

原创 用*显示一个菱形改进版--可输出任意奇数大小的菱形

用*显示一个菱形改进版--可输出任意奇数大小的菱形源代码:#include#includevoid main(){ int n=7; int o=(n/2); int t=1; int step=2; for(int i=0;i<n;i++) { for(int j=0;j<abs(o);j++)

2013-10-20 17:26:14 1770

原创 字符串转换,将其中的大写字母变小写字母,小写字母变大写字母,并输出 。

从键盘输入一个字符串,将其中的大写字母变小写字母,小写字母变大写字母,并输出 。【要求】  (1)用字符数组表示存储字符串(字符串最大为100)。  (2)使用scanf函数逐个输入字符保存在字符数组中  (3)使用printf函数逐个输出字符数组中的字符//输入会自动判断。#includevoid main(){ int i=0; char a[1

2013-10-20 17:16:18 22267 1

原创 N的阶乘解法(C语言简单的代码)

正整数阶乘指从1乘以2乘以3乘以4一直乘到所要求的数。例如所要求的数是4,则阶乘式是1×2×3×4,得到的积是24,24就是4的阶乘。 例如所要求的数是6,则阶乘式是1×2×3×……×6,得到的积是720,720就是6的阶乘。例如所要求的数是n,则阶乘式是1×2×3×……×n,设得到的积是x,x就是n的阶乘。 N的阶乘解法(C语言简单的代码) #include int m

2013-10-19 23:51:43 12047 2

原创 八数码问题高效算法(人工智能实验)

人工智能第一次实验\八数码问题、八数码问题(人工智能实验)迭代深入A*搜索(IDA*)、递归最佳优先搜索RBFS解八数码问题、人工智能实验) #include #include #include #include #define IN1 0x7FFFFFFF/***********************************************************

2013-10-19 23:46:12 5857

原创 皇后问题最快的解法(C语言)八皇后、十六皇后时间在毫秒级

//皇后问题最快的解法(C语言)八皇后、十六皇后时间在毫秒级#include # include# include# include#define O 134775813// TODO (xubo18056052430#1#): PB10210016 徐波LARGE_INTEGER lv,lv1,lv2,lv3,lv4;double totaltime,secondsPer

2013-10-19 23:41:08 3634

原创 C语言求素数的不同解法

C语言求素数的不同解法,不同编码。不同的编码对应不同的效率。1、求a到b之间的素数:(1)一般的:#include "stdio.h"void main(){ int a,b; int i,n; int flag=1; printf("请输入下限:"); scanf("%d",&a); printf("请输入上限:"); scanf("%d",&b); prin

2013-10-19 23:26:26 2685 1

原创 ASCII 码表

ASCII 码表下面的 ASCII 码表包含数值在0-127之间的字符的十进制、八进制以及十六进制表示.十进制八进制十六进制字符描述0000NUL 1101SOHstart of header2202STXstart of text3303ETXend

2013-10-18 14:21:07 1112

原创 常量转义字符

常量转义字符以下的转义字符使普通字符表示不同的意义. 转义字符描述\'单引号\"双引号\\反斜杠\0空字符\a响铃\b后退\f走纸\n换行\r回车\t水平制表符\v垂直制表符\xnnn

2013-10-18 14:20:18 1297

原创 C++ 操作符优先级

C、C++ 操作符优先级        优先级    操作符1()[]->. ::    !~++--2- (unary)* (dereference) & (address of)sizeof3->*.*  4

2013-10-18 14:19:41 724

原创 include <stdio.h>

//此文档为include 中头函数stdio的代码/* * stdio.h * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * No warranty is given; r

2013-10-18 14:17:51 2727

原创 a字母开头的C语言函数

目录函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例:#include stdio.h> //头函数#include stdlib.h> //头函数int main(void){ printf("Calling abort()\n"); //输出 abort();

2013-10-18 14:09:28 1263

原创 C语言关键词C/C++ Keywords

cppreference.com -> C/C++ KeywordsC/C++ Keywordsasm插入一个汇编指令.auto声明一个本地变量.bool声明一个布尔型变量.break结束一个循环.case一个switch语句的一部分.catch处理 thrown 产生的异常.

2013-10-18 01:46:14 1717

原创 小题目大学问--C语言输出问题

原题:C语言输出问题#includeint main(void){ int a=5,b=5,q,p; //q=(a++)+(a++)+(a++); p=(++b)+(++b)+(++b); printf("q:%d\n",q); printf("p:%d\n",p); getchar(); return 0;} 图解: 反汇编代码:v

2013-10-15 22:38:02 1370

CarbonData学习资料

Apache CarbonData学习文档汇总,包含视频/文档/文件等。

2018-11-22

opencv 3.4.1 jar

opencv-341.jar. for invoking opencv,you can add the code to your project

2018-05-16

高级Shell脚本编程

高级Shell脚本编程,高级Shell脚本编程

2016-03-15

2015年中国软件开发者白皮书

2015年中国软件开发者白皮书

2016-01-12

neo4j-javadocs-2.3.1-javadoc.jar

neo4j-javadocs-2.3.1-javadoc.jar neo4j 2.3.1 API

2015-11-26

neo4j-enterprise-2.3.1-unix.tar.gz

neo4j-enterprise-2.3.1-unix.tar.gz,官网下载

2015-11-25

neo4j-enterprise-2.3.0-M03-unix.tar.gz

neo4j-enterprise-2.3.0-M03-unix.tar.gz,官网下载

2015-11-25

资金流入流出预测大赛冠军答辩PPT

资金流入流出预测大赛冠军答辩PPT,资金流入 流出预测 冠军答辩PPT 阿里云 天池

2015-09-09

redis-3.0.4安装包

redis-3.0.4.tar.gz,redis-3.0.4安装包,官网下载

2015-09-09

JDK.API.7_English.chm

JDK.API.7_English.chm Java™ Platform, Standard Edition 7 API Specification This document is the API specification for the Java™ Platform, Standard Edition.

2015-08-24

Java 2 SE 6 Documentation.chm

Java 2 SE 6 Documentation.chm JavaTM SE 6 Platform at a Glance This document covers the JavaTM Platform, Standard Edition 6 JDK. Its product version number is 6 and developer version number is 1.6.0, as described in Platform Name and Version Numbers. For information on a feature of the JDK, click on a component in the diagram below.

2015-08-24

JavaSE中文API.chm

JavaSE中文API.chm JavaTM 2 Platform Standard Edition 5.0 API 规范 本文档是 Java 2 Platform Standard Edition 5.0 的 API 规范。

2015-08-24

jdk api 1.7英文版-带索引

java, jdk api 1.7英文版-带索引,English,Index,Java™ Platform, Standard Edition 7 API Specification

2015-08-24

微软、谷歌、百度、腾讯等各大公司笔试面试题整理全版.rar

微软、谷歌、百度、腾讯等各大公司笔试面试题整理全版.rar

2015-08-20

10部算法经典著作的合集

10部算法经典著作的合集

2015-08-20

百度人搜,阿里巴巴,腾讯华为小米搜狗笔试面试八十题.pdf

百度人搜,阿里巴巴,腾讯华为小米搜狗笔试面试八十题.pdf

2015-08-20

色彩空间转换matlab

色彩空间转换matlab RGB HSV YIQ NTSC

2014-04-14

isrgb.m,matlab

isrgb.m matlab rgb function y = isrgb(x) %ISRGB Return true for RGB image. % FLAG = ISRGB(A) returns 1 if A is an RGB truecolor image and % 0 otherwise. % % ISRGB uses these criteria to determine if A is an RGB image: % % - If A is of class double, all values must be in the range % [0,1], and A must be M-by-N-by-3. % % - If A is of class uint8 or uint16, A must be M-by-N-by-3. % % Note that a four-dimensional array that contains multiple RGB % images returns 0, not 1. % % Class Support % ------------- % A can be of class uint8, uint16, or double. If A is of % class logical it is considered not to be RGB. % % See also ISBW, ISGRAY, ISIND. % Copyright 1993-2003 The MathWorks, Inc. % $Revision: 1.15.4.2 $ $Date: 2003/08/23 05:52:55 $ wid = sprintf('Images:%s:obsoleteFunction',mfilename); str1= sprintf('%s is obsolete and may be removed in the future.',mfilename); str2 = 'See product release notes for more information.'; warning(wid,'%s\n%s',str1,str2); y = size(x,3)==3; if y if isa(x, 'logical') y = false; elseif isa(x, 'double') % At first just test a small chunk to get a possible quick negative m = size(x,1); n = size(x,2); chunk = x(1:min(m,10),1:min(n,10),:); y = (min(chunk(:))>=0 && max(chunk(:))=0 && max(x(:))<=1); end end end

2014-03-27

C语言头函数包include

C语言头函数包include stdio.h stdlib.h等

2013-10-18

计算方法实验Gauss_Seidel法和Runge_Kutta法

计算方法实验说明文档 PB10210016 徐波 实验要求: 第二版208页程序15 第二版208页程序20,将二阶改为四阶,求第二个 实验环境: 操作系统:Windows8 64位  编译软件:Code::Blocks 版本:10.05 位数:32位 实验提交时间:  考前 实验说明: Gauss_Seidel: 左侧为数据文档,为了方便多次测试,可将txt文档中数据复制到exe中运行,输入规范请见上图 上图为正确输出之一 Runge_Kutta 左侧为数据文档,为了方便多次测试,可将txt文档中数据复制到exe中运行,输入规范请见上图 上图为正确输出之一 附件: 程序15:Gauss_Seidel代码、可运行exe程序、输入数据文件和运行截图 程序20:Runge_Kutta代码、可运行exe程序、输入数据文件和运行截图 实验心得:   通过这次实验,对Gauss_Seidel法和Runge_Kutta法了解更深,并且有了实际运行经验,而且通过编程,对方法每一步的运算数据的输入输出了解更深,总的来说收获很大,我们应该多写些类似的程序,希望能将其放在网页上,输入数据就能运行出结果。 PB10210016 徐波 2013.5.28 代码请联系QQ:601450868  

2013-10-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除