资源简介
基于改进型HMM的语音识别模型。有matlab的源代码、GUI界面
代码片段和文件信息
function errstring = consist(model type inputs outputs)
%CONSIST Check that arguments are consistent.
%
% Description
%
% ERRSTRING = CONSIST(NET TYPE INPUTS) takes a network data structure
% NET together with a string TYPE containing the correct network type
% a matrix INPUTS of input vectors and checks that the data structure
% is consistent with the other arguments. An empty string is returned
% if there is no error otherwise the string contains the relevant
% error message. If the TYPE string is empty then any type of network
% is allowed.
%
% ERRSTRING = CONSIST(NET TYPE) takes a network data structure NET
% together with a string TYPE containing the correct network type and
% checks that the two types match.
%
% ERRSTRING = CONSIST(NET TYPE INPUTS OUTPUTS) also checks that the
% network has the correct number of outputs and that the number of
% patterns in the INPUTS and OUTPUTS is the same. The fields in NET
% that are used are
% type
% nin
% nout
%
% See also
% MLPFWD
%
% Copyright (c) Ian T Nabney (1996-2001)
% Assume that all is OK as default
errstring = ‘‘;
% If type string is not empty
if ~isempty(type)
% First check that model has type field
if ~isfield(model ‘type‘)
errstring = ‘Data structure does not contain type field‘;
return
end
% Check that model has the correct type
s = model.type;
if ~strcmp(s type)
errstring = [‘Model type ‘‘‘ s ‘‘‘ does not match expected type ‘‘‘...
type ‘‘‘‘];
return
end
end
% If inputs are present check that they have correct dimension
if nargin > 2
if ~isfield(model ‘nin‘)
errstring = ‘Data structure does not contain nin field‘;
return
end
data_nin = size(inputs 2);
if model.nin ~= data_nin
errstring = [‘Dimension of inputs ‘ num2str(data_nin) ...
‘ does not match number of model inputs ‘ num2str(model.nin)];
return
end
end
% If outputs are present check that they have correct dimension
if nargin > 3
if ~isfield(model ‘nout‘)
errstring = ‘Data structure does not conatin nout field‘;
return
end
data_nout = size(outputs 2);
if model.nout ~= data_nout
errstring = [‘Dimension of outputs ‘ num2str(data_nout) ...
‘ does not match number of model outputs ‘ num2str(model.nout)];
return
end
% Also check that number of data points in inputs and outputs is the same
num_in = size(inputs 1);
num_out = size(outputs 1);
if num_in ~= num_out
errstring = [‘Number of input patterns ‘ num2str(num_in) ...
‘ does not match number of output patterns ‘ num2str(num_out)];
return
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2694 2010-08-23 16:45 57578864speechRHMM\speech R\consist.m
文件 921 2010-08-23 16:45 57578864speechRHMM\speech R\dist2.m
文件 1189 2010-08-23 16:45 57578864speechRHMM\speech R\em_converged.m
文件 6896 2010-08-23 16:45 57578864speechRHMM\speech R\fwdback.m
文件 848 2010-08-23 16:45 57578864speechRHMM\speech R\gaussian_prob.m
文件 4091 2010-08-23 16:45 57578864speechRHMM\speech R\gmm.m
文件 3441 2010-08-23 16:45 57578864speechRHMM\speech R\gmminit.m
文件 289 2010-08-23 16:45 57578864speechRHMM\speech R\isposdef.m
文件 3642 2010-08-23 16:45 57578864speechRHMM\speech R\kmeansNetlab.m
文件 211 2010-08-23 16:45 57578864speechRHMM\speech R\logdet.m
文件 664 2010-08-23 16:45 57578864speechRHMM\speech R\max_mult.m
文件 6320 2010-08-23 16:45 57578864speechRHMM\speech R\mfcc.m
文件 5349 2010-08-23 16:45 57578864speechRHMM\speech R\mhmm_em.m
文件 960 2010-08-23 16:45 57578864speechRHMM\speech R\mhmm_logprob.m
文件 1357 2010-08-23 16:45 57578864speechRHMM\speech R\mixgauss_init.m
文件 3283 2010-08-23 16:45 57578864speechRHMM\speech R\mixgauss_Mstep.m
文件 4102 2010-08-23 16:45 57578864speechRHMM\speech R\mixgauss_prob.m
文件 826 2010-08-23 16:45 57578864speechRHMM\speech R\mk_stochastic.m
文件 861 2010-08-23 16:45 57578864speechRHMM\speech R\normalise.m
文件 4526 2010-08-23 16:45 57578864speechRHMM\speech R\process_options.m
文件 2641 2010-08-23 16:45 57578864speechRHMM\speech R\READHTK.M
文件 1131 2010-08-23 16:45 57578864speechRHMM\speech R\readlab.m
文件 1707 2010-08-23 16:45 57578864speechRHMM\speech R\shibiesb.m
文件 3152 2010-08-24 18:06 57578864speechRHMM\speech R\shujuzhengli.asv
文件 3297 2010-08-25 15:33 57578864speechRHMM\speech R\shujuzhengli.m
文件 742 2010-08-23 16:45 57578864speechRHMM\speech R\sqdist.m
文件 81 2010-08-23 16:45 57578864speechRHMM\speech R\t200.lab
文件 23532 2010-08-23 16:45 57578864speechRHMM\speech R\t200.wav
文件 87 2010-08-23 16:45 57578864speechRHMM\speech R\t201.lab
文件 30284 2010-08-23 16:45 57578864speechRHMM\speech R\t201.wav
............此处省略15个文件信息
- 上一篇:图像SNR、PSNR与MSE计算
- 下一篇:matlab交互式图像分割源程序
相关资源
- matlab交互式图像分割源程序
- 图像SNR、PSNR与MSE计算
- 2004-c题(饮酒驾车的数学模型)+mat
- 非线性扩散--PM算法完整matlab代码
- MATLAB全规则元胞自动机
- Gabor变换 MATLAB程序 根据理论自己编写
- MatLab 批量将24位PNG彩图转换为8位PNG彩
- 用MATLAB实现的MM1仿真
- matlab 绘图教程
- 超全的模式识别Matlab源程序
- SPWM的三相MMC的matlab仿真
- 谐波检测 matlab程序
- 船舶航迹控制
- 船舶海上运动matlab仿真
- 遗传算法改进的模糊C-均值聚类MATLA
- MATLAB 汽车牌照识别程序
- HVDC MATLAB风电仿真模型
- 2PSK的调制与解调
- caffe_matlab
- 激光典型腔的matlab计算
- shepp-logan模型
- 基于Matlab的smith圆图程序
- matlab人工免疫算法求解TSP问题
- 利用POCS实现图像超分辨率重建的mat
- 图像能量代码用于图像处理中 mat
- MATLAB 带通切比雪夫滤波器代码
- 复杂背景下的动态目标识别,是基于
- 复杂网络的小世界模型的matlab实现
- Matlab与串口通信基础
- 单变量及多变量灰色模型matlab程序
评论
共有 条评论