⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errornormalize.m

📁 intlab 工具用于快速计算 各各层的倒数等等
💻 M
字号:
function Err = errornormalize(Err)
%ERRORNORMALIZE  Normalization of error term
%
%For internal use only

%
%  Err = errornormalize(Err)
%
%with Err = Err.mant * beta^Err.exp and Err.mant normalized to
%approximately 1.
%

% written  12/30/98     S.M. Rump
%

global INTLAB_LONG_BETA

  % adapt error mantissa and exponent such that Err.mant around 1
  index = ( Err.mant~=0 );
  if any(index)
    q = floor( log( Err.mant(index) ) / log( INTLAB_LONG_BETA ) );
    Err.mant(index) = Err.mant(index) ./ INTLAB_LONG_BETA.^q;
    Err.exp(index) = Err.exp(index) + q;
  end
  Err.exp(~index) = 0;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -