Dynamic-Calibration/utils/YALMIP-master/operators/negated_perspective_log.m

6 lines
109 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function z = negated_perspective_log(x)
if isequal(x(1),[0])
z = 0;
else
z = x(1)*log(x(1)/x(2));
end