用于单片机的DSP算法库(查找、排序、复数、向量、矩阵、滤波、统计)
本帖最后由 huangzj121 于 2012-10-16 13:51:35 编辑 用于单片机的DSP算法库(查找、排序、复数、向量、矩阵、滤波、统计)
大多数电子产品里面跑的还是MCU而不是DSP,由于经常要作一些信号处理,所以把一些通用算法做成模块,成本比DSP低了很多,效率上DSP没有乘法硬件也只是提供汇编库,这里所有操作用指针代替。
查找与排序
http://www.math86a.icoc.cc/nd.jsp?id=8&moduleId=3&fromColId=4
复数
http://www.math86a.icoc.cc/nd.jsp?id=9&moduleId=3&fromColId=4
向量与矩阵
http://www.math86a.icoc.cc/nd.jsp?id=10&moduleId=3&fromColId=4
滤波与统计
http://www.math86a.icoc.cc/nd.jsp?id=11&moduleId=3&fromColId=4
/*********************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_sorts
This program is include some basic algorithm of find and sort.
Contain: sequence find,
binary find,
insert sort,
shell sort,
select sort,
heap sort,
bubble sort,
quick sort,
merge sort,
a random quick sort,
system quick sort.
Author: huang zhen jiang
Date: 2012 / 08 / 10
*********************************************************************/
/*************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_fcomplex
This program is include some basic calculate of complex.
Contain: create one complex,
complex addition,
complex substruction,
complex multiplication,
complex division,
complex's conjg,
complex's mod,
real multiply complex.
Author: huang zhen jiang
Date: 2012 / 08 / 16
*************************************************************/
/*****************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_fmatrix
This program is include some basic calculate of real matrix.
Contain: creat integrate vector,
creat float point vector,
creat double vector,
print vector,
delete vector,
maximum of one vector,
minimize of one vector,
copy one vector,
vector's addition,
vector's substruction,
vector's multiplication,
vector multiply a real,
create zero matrix,
create one matrix,
create identity matrix,
print matrix,
delete matrix,
copy one matrix,
matrix's transform,
matrix's addition,
matrix's substruction,
matrix's multiplication,
matrix's inverse,
matrix's division,
matrix multiply a real.
Author: huang zhen jiang
Date: 2012 / 09 / 16
*****************************************************************/
/******************************************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_filter
This program is include some basic calculate and algorithm of digital signal process.
Contain: fixed point convolution,
float point convolution,
fixed point filter difference function,
float point filter difference function,
calculate data's maximum,
calculate data's minimize,
calculate data's average,
calculate data's integral,
calculate data's summation,
calculate 1-dimension discrete-fourier-transform,
calculate 1-dimension inverse discrete-fourier-transform,
calculate 1-dimension fast-fourier-transform,
calculate 1-dimension inverse fast-fourier-transform,
calculate cross correlate,
calculate variance,
calculate correlate coefficient,
calculate power spectrum,
LMS adaptive filter,
RLS adaptive filter,
kalman adaptive filter,
kalman estimate.
Author: huang zhen jiang
Date: 2012 / 08 / 19
******************************************************************************************/