搜索资源列表
sgj3
- 考察例1 4 - 8中的1 4个点。A中的最近点对为(b,h),其距离约为0 . 3 1 6。B中最近点对为 (f, j),其距离为0 . 3,因此= 0 . 3。当考察 是否存在第三类点时,除d, g, i, l, m 以外 的点均被淘汰,因为它们距分割线x= 1的 距离≥ 。RA ={d, i, m},RB= {g, l},由 于d 和m 的比较区中没有点,只需考察i 即可。i 的比较区中仅含点l。计算i 和l 的距离,发现它小于,因此(i, l) 是最近
LDPCcode
- 利用函数MadHG生成规则LDPC码的校验矩阵H,其行重为6,列重为3,行数为列数一半(行数越大越好),H中任意两列没有围长为4的圈,并得到H对应的生成矩阵G,可以保证mod(G*H ,2)=0。使用方法为:[H,G] = MadHG(m,n,x),x= 1(得到的G左半部分为单位阵) or 2(G右半部分为单位阵),-use function MadHG Generation rules LDPC check matrix H, re-6, series of three, out for a
MadHG
- 利用函数MadHG生成规则LDPC码的校验矩阵H,其行重为6,列重为3,行数为列数一半(行数越大越好),H中任意两列没有围长为4的圈,并得到H对应的生成矩阵G,可以保证mod(G*H ,2)=0。使用方法为:[H,G] = MadHG(m,n,x),x= 1(得到的G左半部分为单位阵) or 2(G右半部分为单位阵),-use function MadHG Generation rules LDPC check matrix H, re-6, series of three, out for a
GassianXY
- 利用二元域的高斯消元法得到输入矩阵H对应的生成矩阵G,同时返回与G满足mod(G*P ,2)=0的矩阵P,其中P 表示P的转置 使用方法:[P,G]=Gaussian(H,x),x=1 or 2,1表示G的左边为单位阵-binary domain PGE law input matrix corresponding to the formation of H matrix G, Meanwhile the return of mod meet with the G (G * P, 2) =
MATLAB
- 卷积运算:取x(t)和h(t)的长度为nx,nh。平移量n=nh+nx-1,利用for和if语句实现倒序求和运算。外循环用一个for语句实现平移,通过在求和时取数组元素的顺序实现倒序求和
CavalierTravelling
- 骑士遍历问题。原创代码。通过测试的。 -- 在一个标准8×8的国际象棋棋盘上,棋盘中有些格子是可能有障碍物的。已知骑士的初始位置和目标位置,你的任务是计算出骑士最少需要多少步可以从初始位置到达目标位置。有障碍物的格子当然不可能到达。 标准的8×8的国际象棋棋盘中每一个格子可以用唯一的编号确定。行用1~8这8个数字依次表示,列用“a”~“h”这8个字母依次表示。例如下图(a)的骑士所在位置(图中有n的格子)的编号为“d4”(注意“d”和“4”之间没有空格)。 我们知道国际象棋中
zuobiaozhuanhuan
- 本程序提供WGS-84、BJ54和Xi’an80下大地坐标、空间直角坐标以及高斯坐标的相互转换,不同椭球参数下的转换需通过空间直角坐标过渡,由于时间原因,高斯坐标正反算只在BJ54下进行。空间坐标的转换需要借助七参数,可手工输入,也可由文本文件中至少公共点平差计算得到(data.txt可用于七参数计算测试)。 计算过程: WGS-84 B=30.303622 L=114.212196 H =47.36 (经纬度采用度分秒联写) BLH ——>XYZ X=-22681
FIR5
- 系数对称的FIR滤波器设计 * *N=8,h(n)=h(N-1-n) * *y(n)=h0*[x(n)+x(n-7)]+h1*[x(n-1)+x(n-6)] * * +h2*[x(n-2)+x(n-5)]+h3*[x(n-3)+x(n-4)]
weijifen
- 微积分的数值计算函数,包括: double composite_simpson(double(*f)(double),double a,double b,int n) double romberg(double(*f)(double),double a,double b,double eps,int max_it) double gauss_legendre(double(*f)(double),double a,double b) double central_difference(doubl
pl/0
- /*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10
PKT
- * Network Coding Network Simulator * * 06/10/05 - Aaron Drew * * This simulator is designed to test out the performance of a variety of network coding approaches. * * It simulates networks with dynamic topologies, reading from NS2 compati
LED
- 程序编写,LED动态显示12345678 #include<reg52.h> #define uchar unsigned char #define uint unsigned int uchar code duma[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f, //共阴的数码管段选.将值送给P2口 0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40,0x80,0x00}
NStepSCAN
- NStepSCAN N步磁盘扫描调度算法C++程序-#include "stdafx.h" #include "stdlib.h" int L,P int a[20] int flag //访问位 typedef struct TASK { int requrie int io } TASK TASK T[50][50] TASK N[50] int diskway //当前磁道 void iod
C
- 生成100个点的坐标(x,y,z),x和y在10-10000之内,z在0-10之内,用TXT输出x,y,z以及平均高程h。-Generate 100 points of coordinates (x, y, z), x and y in 10-10000, z 0-10, TXT output x, y, and z and the average elevation h.
corner_detector
- 这是用matlab写的一个corner detector, 效果比现在流行的Harris,susan,CSS等效果要好。 Matlab 确实如此,效果很好,不管是边缘还是角点 -Algorithm is derived from: X.C. He and N.H.C. Yung, Curvature Scale Space Corner Detector with Adaptive Threshold and Dynamic Region of Support , Proceedin
linear-list
- 在带头结点的单链表h中第i个数据元素之前插入一个数据元素x ,首先需要在单链表中寻找到第i-1个结点并用指针p指示,然后申请一个由指针s 指示的结点空间,并置x为其数据域值,最后修改第i-1个结点,并使x结点的指针指向第i个结点,要在带头结点的单链表h中删除第i个结点,首先要计数寻找到第i个结点并使指针p指向其前驱第i-1个结点,然后删除第i个结点并释放被删除结点空间。-Take the lead junction point of the singly-linked list h prior
wfb2dec
- WFB2DEC 2-D Wavelet Filter Bank Decomposition y = wfb2dec(x, h, g) Input: x: input image h, g: lowpass analysis and synthesis wavelet filters Output: x_LL, x_LH, x_HL, x_HH: Four 2-D wavelet subbands Make sure filt
MyCC1000
- CC1000驱动源码,用于驱动底层,配置为曼码通信模式,三线配置接口,外部中断-// Device: CC1020 // System parameters: // X-tal frequency: 14.745600 MHz Internal // X-tal accuracy:+/- 5 ppm // RF frequency A: 433.916 MHz Active Tx // RF frequency B: 433.916 MHz Inactive Rx
triangular
- making triangular number with c++ using integer #include<stdio.h> int triangular(int a) main() { int x printf("menghitung triangular bilangan\n") printf("masukkan bilangan x= ") scanf(" d",&x) triangular(x)
zhengyan
- 用于计算已知埋深和尺寸大小的球体的磁性,要求磁化方向已知,结果对比了X,Y, Z 和H分量在不同方向的大小-Known for calculating the depth and size of a magnetic sphere, requires the magnetization direction is known, the results compared X, Y, Z and H components of the size in different directions