- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
bisect.asv
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- function [c,err,yc]=bisect(f,a,b,delta)
- %缩小范围,
- %input-f is the function input as a string'f'
- % -a and b are the left and right end points
- % -delta is the tolerance
- % output-c is the zero
- % -yc=f(c)
- % -err is the error estimate for c
- ya=feval(f,a);%对函数F进行计算
- yb=feval(f,b);
- if ya*yb>0,break,end
- max1=1+round((log(b-a)-log(delta)/log(2));%????
- for k=1:max1
- c=(a+b)/2;
- yc=feval(f,c);
- if yc==0
- a=c;
- b=c;
- elseif yb*yc>0
- b=c;
- yb=yc;
- else a=c;
- ya=yc;
- end
- if b-a<delta,break,end
- end
- c=(a+b)/2;
- err=abs(b-a);
- yc=feval(f,c);