-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathlogit.m
More file actions
18 lines (17 loc) · 714 Bytes
/
Copy pathlogit.m
File metadata and controls
18 lines (17 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% logit(x) returns the logit of the elements of X. It is the inverse of
% sigmoid(x).
function y = logit (x)
% Part of the varbvs package, https://github.com/pcarbo/varbvs
%
% Copyright (C) 2012-2017, Peter Carbonetto
%
% This program is free software: you can redistribute it under the
% terms of the GNU General Public License; either version 3 of the
% License, or (at your option) any later version.
%
% This program is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANY; without even the implied warranty of
% MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU
% General Public License for more details.
%
y = log((x + eps)./((1 - x) + eps));