题目描述 蛇行矩阵 Problem 蛇形矩阵是由1开始的自然数依次排列成的一个矩阵上三角形。 输入 Input 本题有多组数据,每组数据由一个正整数N组成。(N不大于100) 输出 Output 对于每一组数据,输出一个N行的蛇形矩阵。两组输出之间不要额外的空行。 矩阵三角中同一行的数字用一个空格分开。行尾不要多余的空格。 样例输入 5 样例输出 1 3 6 10 15 2 5 9 14 4 8 13 7 12 11
上传时间: 2016-02-29
上传用户:lwol2007
This report presents a tutorial of fundamental array processing and beamforming theory relevant to microphone array speech processing. A microphone array consists of multiple microphones placed at different spatial locations. Built upon a knowledge of sound propagation principles, the multiple inputs can be manipulated to enhance or attenuate signals emanating from particular directions. In this way, microphone arrays provide a means of enhancing a desired signal in the presence of corrupting noise sources. Moreover, this enhancement is based purely on knowledge of the source location, and so microphone array techniques are applicable to a wide variety of noise types. Microphone arrays have great potential in practical applications of speech processing, due to their ability to provide both noise robustness and hands-free signal acquisition.
标签: Microphone array Tutorial Array Signal Processing
上传时间: 2016-06-12
上传用户:halias
evolution computing 现在最火的一篇论文 Handling Multiple Objectives With Particle Swarm Optimization
上传时间: 2016-07-01
上传用户:白水煮瓜子
V1.16 Win32 July 2012 - Ported to Win32 C++ - Allow multiple instances of libnids to coexist in the same process - Incorporate unofficial patch to track established TCP connections - Migration of calls to secure versions (i.e. strcpy to strcpy_s) - Compiles under Visual Studio 2010 with no warnings at W4 - Linux support well and truly broken, Linux specific code removed
标签: libnids-Win32
上传时间: 2016-07-30
上传用户:mxgg126
We consider the problem of target localization by a network of passive sensors. When an unknown target emits an acoustic or a radio signal, its position can be localized with multiple sensors using the time difference of arrival (TDOA) information. In this paper, we consider the maximum likelihood formulation of this target localization problem and provide efficient convex relaxations for this nonconvex optimization problem.We also propose a formulation for robust target localization in the presence of sensor location errors. Two Cramer-Rao bounds are derived corresponding to situations with and without sensor node location errors. Simulation results confirm the efficiency and superior performance of the convex relaxation approach as compared to the existing least squares based approach when large sensor node location errors are present.
标签: 传感器网络
上传时间: 2016-11-27
上传用户:xxmluo
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define NULL 0 #define MaxSize 30 typedef struct athletestruct /*运动员*/ { char name[20]; int score; /*分数*/ int range; /**/ int item; /*项目*/ }ATH; typedef struct schoolstruct /*学校*/ { int count; /*编号*/ int serial; /**/ int menscore; /*男选手分数*/ int womenscore; /*女选手分数*/ int totalscore; /*总分*/ ATH athlete[MaxSize]; /**/ struct schoolstruct *next; }SCH; int nsc,msp,wsp; int ntsp; int i,j; int overgame; int serial,range; int n; SCH *head,*pfirst,*psecond; int *phead=NULL,*pafirst=NULL,*pasecond=NULL; void create(); void input () { char answer; head = (SCH *)malloc(sizeof(SCH)); /**/ head->next = NULL; pfirst = head; answer = 'y'; while ( answer == 'y' ) { Is_Game_DoMain: printf("\nGET Top 5 when odd\nGET Top 3 when even"); printf("\n输入运动项目序号 (x<=%d):",ntsp); scanf("%d",pafirst); overgame = *pafirst; if ( pafirst != phead ) { for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ ) { if ( overgame == *pasecond ) { printf("\n这个项目已经存在请选择其他的数字\n"); goto Is_Game_DoMain; } } } pafirst = pafirst + 1; if ( overgame > ntsp ) { printf("\n项目不存在"); printf("\n请重新输入"); goto Is_Game_DoMain; } switch ( overgame%2 ) { case 0: n = 3;break; case 1: n = 5;break; } for ( i = 1 ; i <= n ; i++ ) { Is_Serial_DoMain: printf("\n输入序号 of the NO.%d (0<x<=%d): ",i,nsc); scanf("%d",&serial); if ( serial > nsc ) { printf("\n超过学校数目,请重新输入"); goto Is_Serial_DoMain; } if ( head->next == NULL ) { create(); } psecond = head->next ; while ( psecond != NULL ) { if ( psecond->serial == serial ) { pfirst = psecond; pfirst->count = pfirst->count + 1; goto Store_Data; } else { psecond = psecond->next; } } create(); Store_Data: pfirst->athlete[pfirst->count].item = overgame; pfirst->athlete[pfirst->count].range = i; pfirst->serial = serial; printf("Input name:) : "); scanf("%s",pfirst->athlete[pfirst->count].name); } printf("\n继续输入运动项目(y&n)?"); answer = getchar(); printf("\n"); } } void calculate() /**/ { pfirst = head->next; while ( pfirst->next != NULL ) { for (i=1;i<=pfirst->count;i++) { if ( pfirst->athlete[i].item % 2 == 0 ) { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 5;break; case 2:pfirst->athlete[i].score = 3;break; case 3:pfirst->athlete[i].score = 2;break; } } else { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 7;break; case 2:pfirst->athlete[i].score = 5;break; case 3:pfirst->athlete[i].score = 3;break; case 4:pfirst->athlete[i].score = 2;break; case 5:pfirst->athlete[i].score = 1;break; } } if ( pfirst->athlete[i].item <=msp ) { pfirst->menscore = pfirst->menscore + pfirst->athlete[i].score; } else { pfirst->womenscore = pfirst->womenscore + pfirst->athlete[i].score; } } pfirst->totalscore = pfirst->menscore + pfirst->womenscore; pfirst = pfirst->next; } } void output() { pfirst = head->next; psecond = head->next; while ( pfirst->next != NULL ) { // clrscr(); printf("\n第%d号学校的结果成绩:",pfirst->serial); printf("\n\n项目的数目\t学校的名字\t分数"); for (i=1;i<=ntsp;i++) { for (j=1;j<=pfirst->count;j++) { if ( pfirst->athlete[j].item == i ) { printf("\n %d\t\t\t\t\t\t%s\n %d",i,pfirst->athlete[j].name,pfirst->athlete[j].score);break; } } } printf("\n\n\n\t\t\t\t\t\t按任意建 进入下一页"); getchar(); pfirst = pfirst->next; } // clrscr(); printf("\n运动会结果:\n\n学校编号\t男运动员成绩\t女运动员成绩\t总分"); pfirst = head->next; while ( pfirst->next != NULL ) { printf("\n %d\t\t %d\t\t %d\t\t %d",pfirst->serial,pfirst->menscore,pfirst->womenscore,pfirst->totalscore); pfirst = pfirst->next; } printf("\n\n\n\t\t\t\t\t\t\t按任意建结束"); getchar(); } void create() { pfirst = (struct schoolstruct *)malloc(sizeof(struct schoolstruct)); pfirst->next = head->next ; head->next = pfirst ; pfirst->count = 1; pfirst->menscore = 0; pfirst->womenscore = 0; pfirst->totalscore = 0; } void Save() {FILE *fp; if((fp = fopen("school.dat","wb"))==NULL) {printf("can't open school.dat\n"); fclose(fp); return; } fwrite(pfirst,sizeof(SCH),10,fp); fclose(fp); printf("文件已经成功保存\n"); } void main() { system("cls"); printf("\n\t\t\t 运动会分数统计\n"); printf("输入学校数目 (x>= 5):"); scanf("%d",&nsc); printf("输入男选手的项目(x<=20):"); scanf("%d",&msp); printf("输入女选手项目(<=20):"); scanf("%d",&wsp); ntsp = msp + wsp; phead = (int *)calloc(ntsp,sizeof(int)); pafirst = phead; pasecond = phead; input(); calculate(); output(); Save(); }
标签: 源代码
上传时间: 2016-12-28
上传用户:150501
The AP2406 is a 1.5Mhz constant frequency, slope compensated current mode PWM step-down converter. The device integrates a main switch and a synchronous rectifier for high efficiency without an external Schottky diode. It is ideal for powering portable equipment that runs from a single cell lithium-Ion (Li+) battery. The AP2406 can supply 600mA of load current from a 2.5V to 5.5V input voltage. The output voltage can be regulated as low as 0.6V. The AP2406 can also run at 100% duty cycle for low dropout operation, extending battery life in portable system. Idle mode operation at light loads provides very low output ripple voltage for noise sensitive applications. The AP2406 is offered in a low profile (1mm) 5-pin, thin SOT package, and is available in an adjustable version and fixed output voltage of 1.2V, 1.5V and 1.8V
上传时间: 2017-02-23
上传用户:w124141
BP神经网络matlab源程序代码 %% 该代码为 BP 神经网络的预测代码 % 清空环境变量 clc clear % %% 网络结构建立 % 读取数据 load data input output input=data(;,1;2;3;4;5); output=data(;,5); %节点个数 %训练数据和预测数据 %选连样本输入输出数据归一化 %构建网络 net=newff(inputn,outputn,hiddennum); %网络进化参数 %网络训练 % 预测数据归一化
上传时间: 2018-04-10
上传用户:45808330
产品品牌:VINTEK/元泰/VINKA —— 原厂直销,样品免费,技术支持,大量现货! 产品型号:VK3809IP 封装形式:SOP16贴片 产品年份:新年份 联 系 人:许先生 联 系 QQ:1918885898 联系手机:18898582398 原厂直销触摸触控感应芯片,多种形式选择更专业,原装正品保障,价格更具优势! 概述 VK3809IP 是一款9感应通道高抗干扰的触摸IC,工作电压:2.5V-5.5V,工作电流:1.1MA-3V,IIC/INT通讯口。可设置为9个独立按键或者最多3组滑条,可通过IIC设置工作模式和参数,可以通过CAP脚电容调节灵敏度。封装是SOP16。应用于大小家电,门禁监控和消费类电子。 ★软件简介: 此软件系提供给客户一个简易设定的滑条按键应用方案。客户只要使用 IIC 通讯格式,即可设定并读取滑条按键及独立按键触摸数据。 特色 : 1.此应用使用 16 个 Touch Pad 让客户可依照设计上的需求进行规划。16 个 Touch PAD 可规划为滑条按键或是独立按键,滑条多可规划为 3 组滑条。当无滑条按键设定时,16 Key 都可做独立按键使用。 2.修改设定参数的方式有两种,用户可配合 USB PCLink Board 来调整滑条按键 触摸灵敏度等参数,然后利用 IIC 写入指令来修改设定参数。 3.程序的独立按键输出模式有两种 Multiple 以及 Single,当选则为Multiple 时会将所有按下的按键输出,而选择 Single 时只会输出第一个按下的按键,当按键被放开时,才会输出下一个按键。 4.设计有省电模式,适合用在如遥控器等需要长时间待机的应用。 5.有 4 组 Slave address,可由外部开关切换。 产品应用范围: 大小家电 门禁监控设备 消费类电子 ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● 产品品牌:VINTEK/元泰/VINKA —— 原厂直销,样品免费,技术支持,大量现货! 产品型号:VK3813IP 封装形式:SSOP20贴片 产品年份:新年份 联 系 人:许先生 联 系 QQ:1918885898 联系手机:18898582398 原厂直销触摸触控感应芯片,多种形式选择更专业,原装正品保障,价格更具优势! 概述 VK3813IP 是一款13感应通道高抗干扰的触摸IC,工作电压:2.5V-5.5V,工作电流:1.1MA-3V,IIC/INT通讯口。可设置为13个独立按键或者最多3组滑条,可通过IIC设置工作模式和参数,可以通过CAP脚电容调节灵敏度。封装是SSOP20。应用于大小家电,门禁监控和消费类电子。 特色 : 1. 此应用使用 13 个 Touch Pad 让客户可依照设计上的需求进行划。13 个 Touch PAD 可规划为滑条按键或是独立按键,滑条多可规划为 3 组滑条。当无滑条按键设定时,13 Key 都可做独立按键使用。 2.修改设定参数的方式有两种,用户可配合 USB PCLink Board 来调整滑条按键触摸灵敏度等参数,然后利用 IIC 写入指令来修改设定参数。 3.程序的独立按键输出模式有两种 Multiple 以及 Single,当选则为Multiple 时会将所有按下的按键输出,而选择 Single 时只会输出第一个按下的按键,当按键被放开时,才会输出下一个按键。 4. 设计有省电模式,适合用在如遥控器等需要长时间待机的应用。 产品应用范围: 大小家电 门禁监控设备和消费类电子 ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● 产品品牌:VINTEK/元泰/VINKA —— 原厂直销,样品免费,技术支持,大量现货! 产品型号:VK3816IP 封装形式:SSOP28贴片 产品年份:新年份 联 系 人:许先生 联 系 QQ:1918885898 联系手机:18898582398 原厂直销触摸触控感应芯片,多种形式选择更专业,原装正品保障,价格更具优势! 概述 VK3816IP 是一款16感应通道高抗干扰的触摸IC,工作电压:2.5V-5.5V,工作电流:1.1MA-3V,IIC/INT通讯口。可设置为16个独立按键或者最多3组滑条,IIC设备地址可通过2个输入脚设置,可通过IIC设置工作模式和参数,可以通过CAP脚电容调节灵敏度。封装是SSOP28。应用于大小家电,门禁监控和消费类电子。 特色 : 1. 此应用使用 16 个 Touch Pad 让客户可依照设计上的需求进行规划。16 个 Touch PAD 可规划为滑条按键或是独立按键,滑条多可规划为 3 组滑条。当无滑条按键设定时,16 Key 都可做独立按键使用。 2. 修改设定参数的方式有两种,用户可配合 USB PCLink Board 来调整滑条按键触摸灵敏度等参数,然后利用 IIC 写入指令来修改设定参数。 3. 程序的独立按键输出模式有两种 Multiple 以及 Single,当选则为Multiple 时会将所有按下的按键输出,而选择 Single 时只会输出第一个按下的按键,当按键被放开时,才会输出下一个按键。 4. 设计有省电模式,适合用在如遥控器等需要长时间待机的应用。 5. 有 4 组 Slave address,可由外部开关切换。 产品应用范围: 大小家电门 禁监控设备 消费类电子
上传时间: 2018-12-12
上传用户:shubashushi66
产品品牌:VINTEK/元泰/VINKA —— 原厂直销,样品免费,技术支持,大量现货! 产品型号:VK3813IP 封装形式:SSOP20贴片 产品年份:新年份 联 系 人:许先生 联 系 QQ:1918885898 联系手机:18898582398 原厂直销触摸触控感应芯片,多种形式选择更专业,原装正品保障,价格更具优势! 概述 VK3813IP 是一款13感应通道高抗干扰的触摸IC,工作电压:2.5V-5.5V,工作电流:1.1MA-3V,IIC/INT通讯口。可设置为13个独立按键或者最多3组滑条,可通过IIC设置工作模式和参数,可以通过CAP脚电容调节灵敏度。封装是SSOP20。应用于大小家电,门禁监控和消费类电子。 特色 : 1. 此应用使用 13 个 Touch Pad 让客户可依照设计上的需求进行划。13 个 Touch PAD 可规划为滑条按键或是独立按键,滑条多可规划为 3 组滑条。当无滑条按键设定时,13 Key 都可做独立按键使用。 2.修改设定参数的方式有两种,用户可配合 USB PCLink Board 来调整滑条按键触摸灵敏度等参数,然后利用 IIC 写入指令来修改设定参数。 3.程序的独立按键输出模式有两种 Multiple 以及 Single,当选则为Multiple 时会将所有按下的按键输出,而选择 Single 时只会输出第一个按下的按键,当按键被放开时,才会输出下一个按键。 4. 设计有省电模式,适合用在如遥控器等需要长时间待机的应用。 产品应用范围: 大小家电 门禁监控设备和消费类电子
标签: 高抗干扰 触摸芯片
上传时间: 2018-12-12
上传用户:shubashushi66