forked from TASBE/TASBEFlowAnalytics
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgeo_error_bars.m
More file actions
20 lines (18 loc) · 776 Bytes
/
geo_error_bars.m
File metadata and controls
20 lines (18 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% Copyright (C) 2010-2017, Raytheon BBN Technologies and contributors listed
% in the AUTHORS file in TASBE analytics package distribution's top directory.
%
% This file is part of the TASBE analytics package, and is distributed
% under the terms of the GNU General Public License, with a linking
% exception, as described in the file LICENSE in the TASBE analytics
% package distribution's top directory.
function [LU L U] = geo_error_bars(val,err)
% function [LU L U] = geo_error_bars(val,err)
%
% Function for turning geometric error into Lower/Upper error bar pairs
% for graphing routines that assume arithmetic error
%
% This function assumes that error is represented positively
% in terms of fold, i.e. err >= 1.
U = val.*(err-1);
L = val.*(1-(1./err));
LU = [L;U];