Home > release > errorbar_logsafe.m

errorbar_logsafe

PURPOSE ^

ERRORBAR_LOGSAFE - Computes a log-safe errorbar

SYNOPSIS ^

function h=errorbar_logsafe(X, Y, E, epsilon)

DESCRIPTION ^

 ERRORBAR_LOGSAFE - Computes a log-safe errorbar

 Syntax
  function h=errorbar_logsafe(X, Y, E, epsilon)

 Reference
 "On the extension of trace norm to tensors"
 Ryota Tomioka, Kohei Hayashi, and Hisashi Kashima
 arXiv:1010.0789
 http://arxiv.org/abs/1010.0789
 
 Copyright(c) 2010 Ryota Tomioka
 This software is distributed under the MIT license. See license.txt

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % ERRORBAR_LOGSAFE - Computes a log-safe errorbar
0002 %
0003 % Syntax
0004 %  function h=errorbar_logsafe(X, Y, E, epsilon)
0005 %
0006 % Reference
0007 % "On the extension of trace norm to tensors"
0008 % Ryota Tomioka, Kohei Hayashi, and Hisashi Kashima
0009 % arXiv:1010.0789
0010 % http://arxiv.org/abs/1010.0789
0011 %
0012 % Copyright(c) 2010 Ryota Tomioka
0013 % This software is distributed under the MIT license. See license.txt
0014 
0015 
0016 function h=errorbar_logsafe(X, Y, E, epsilon)
0017 
0018 if ~exist('epsilon','var')
0019   epsilon=0.99;
0020 end
0021 
0022 
0023 U = E;
0024 L = min(E,Y*epsilon);
0025 
0026 h=errorbar(X,Y,L,U);

Generated on Wed 22-Dec-2010 16:09:20 by m2html © 2003