Description
Returns the empirical marginals of a maximum entropy model for a set of samples. The function accepts an array of samples over which the marginals are to be computed, and a model which defines the observables to be computed.
Maximum Entropy toolbox for MATLAB
Returns the empirical marginals of a maximum entropy model for a set of samples. The function accepts an array of samples over which the marginals are to be computed, and a model which defines the observables to be computed.
marginals = maxent.getEmpiricalMarginals(samples,model)
% initialize a maximum entropy model model = maxent.createModel(30,'ising'); % The observables of Ising model are firing rates and correlations, so getting the empirical marginals of this % set of samples will actually return the firing rates and correlations of the population activity marginals = maxent.getEmpiricalMarginals(samples,model);