1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4%%%% ParaMonte: Parallel Monte Carlo and Machine Learning Library. %%%%
6%%%% Copyright (C) 2012-present, The Computational Data Science Lab %%%%
8%%%% This file is part of the ParaMonte library. %%%%
14%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19% This function returns the probability density function of the standard multivariate normal distribution of ndim dimensions.
21 % Standard MultiVariate Normal (SMVN) specifications: https:
23%----------------------------------------------------------------------
25% LOG_SMVN_COEF = length(Point) * log( 1/sqrt(2*pi) );
26% logFunc = LOG_SMVN_COEF - 0.5 * sum(Point.^2);
28%----------------------------------------------------------------------
30 logFunc = -0.5 * sum(point.^2);
32%----------------------------------------------------------------------
34 % Rosenbrock test function
35% logFunc = -( 100.0 * (point(2)-point(1)^2)^2 + (point(1)-1.0)^2 )/20;
36%----------------------------------------------------------------------
40%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41%%%%%%%%%%%%%%%%% PYTHON-
getLogFunc %%%%%%%%%%%%%%%%%%%%%%
45%%%% return -0.5 * np.sum( np.double( Point )**2 ) %%%%
47%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function getLogFunc(in point)