代码搜索结果
找到约 582,192 项符合
Cortex-M 的代码
例6-7(1).m
function rdot=e31a(t,r)
c=0.01;
g=9.81;
m=1; %空气阻力系数及重力加速度(m/s^2)
vm=sqrt(r(3)^2+r(4)^2); %速度大小
rdot=[r(3);r(4);-c*vm*r(3)/m;-c*v
dct_lms_c.m
function [W, e, Lambda] = dct_lms_C(u, d, M, alpha, beta, gamma, verbose)
% function [W, e, Lambda] = dct_lms_C(u, d, M, alpha, beta, gamma, verbose)
%
% dct_lms_C.m - use DCT-LMS algorithm with recur
q.m
% File: q.m
%
%
function y=q(x)
y = 0.5*erfc(x/sqrt(2));
% End function file.
pdf.m
function p = pdf(m, v, x)
%计算多元高斯密度函数
%输入:
% m -- 均值向量, SIZE*1
% v -- 方差向量, SIZE*1
% x -- 输入向量, SIZE*1
%输出:
% p -- 输出概率
p = (2 * pi * prod(v)) ^ -0.5 * exp(-0.5 * (x-m) ./ v * (x-m)');
1.m
a=load('q.txt')
width=input('请输入窗宽')
step=input('请输入步长')
m=length(a)
for i=1:floor((m-width)/step+1)
s(i,1:width)=a(1,1+(i-1)*step:width+(i-1)*step);
end
b=max(max(s))
M=s./b
Rs=input('请输入本体集
r.m
function tri = R(tau,T)
tri = (1-abs(tau)./T).*heaviside(1-abs(tau)./T);
%%%%%%%%%%%%% R.m %%%%%%%%%%%%%%%%%%%%
% HEAVISIDE Step function.
% HEAVISIDE(X) is 0 for X < 0, 1 for X > 0,
lpball_dist.m
%LPBALL_DIST Compute Lp distance to a mean
%
% [F,G,H] = LPBALL_DIST(M,X,P,FRAC)
%
% Compute the maximum distance of objects X to the mean M, using Lp
% distances with P. To make the distance a bi
is_ocset.m
%IS_OCSET True for one-class datasets
%
% is_ocset(a) returns true if the dataset a is a one-class dataset,
% containing only classes 'target' and/or 'outlier'.
% Copyright: D.M.J. Tax, D.M.J.Ta
dd_ex7.m
% Show how several one-class classifiers can be combined.
% To make the classifier outputs comparable, the outputs should be
% normalized using dd_normc
% Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org
convo.m
% 卷积编码 函数名convo
%输入参量: 编码速率rate2,信号 signal1,输出量:信号signal2
%速率可以为1/2(signal中卷积采用的是1/2卷积编码),3/4,2/3
%利用的是凿空原理,输入信号为k个,经过n/m编码后,数据应为k*m/n,可以变换为2k*m/(2*n)
function [signal2]=convo(signal1,rate2)