You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: runEstimation_JakStat.m
    path of file: ./repos/PESTO/examples/HierarchicalOptimization_examples/SmallJakStat
    
    the code of the file until where you have to start completion: function parameters = runEstimation_JakStat(varargin)
% runEstimation_JakStat() runs the parameter estimation for the JAK-STAT
% signalig model.
%
% USAGE:
% * parameters = runEstimation_JakStat('hierarchical','normal')
% * parameters = runEstimation_JakStat('hierarchical','normal','pswarm')
%
% Parameters
%  approach: 'hierarchical' or 'standard' approach for the optimization
%  distribution: 'normal' (Gaussian noise) or 'laplace' (Laplace noise) for

    
function parameters = runEstimation_JakStat(varargin)
% runEstimation_JakStat() runs the parameter estimation for the JAK-STAT
% signalig model.
%
% USAGE:
% * parameters = runEstimation_JakStat('hierarchical','normal')
% * parameters = runEstimation_JakStat('hierarchical','normal','pswarm')
%
% Parameters
%  approach: 'hierarchical' or 'standard' approach for the optimization
%  distribution: 'normal' (Gaussian noise) or 'laplace' (Laplace noise) for
%  the noise distribution
%  optimizer: 'fmincon','pswarm',... see PTOptions local optimizer
%
% Return values:
% parameters: returned by getParameterProfiles

approach = varargin{1};
distribution = varargin{2};
if nargin > 2
    optimizer = varargin{3};
else
    optimizer = 'fmincon';
end