function layer = sigmoidLayer(nameValueArgs)
% sigmoidLayer   Sigmoid layer
%
%   layer = sigmoidLayer creates a sigmoid layer. This type of
%   layer applies the sigmoid function to its input such that the  
%   output is bounded between 0 and 1.
%
%   layer = sigmoidLayer('Name', name) additionally specifies the layer name.
%
%   Example:
%       Create a sigmoid layer.
%
%       layer = sigmoidLayer;
%
%   See also nnet.cnn.layer.SigmoidLayer, softmaxLayer, fullyConnectedLayer.
%
%   <a href="matlab:helpview('deeplearning','list_of_layers')">List of Deep Learning Layers</a>

%   Copyright 2019 The MathWorks, Inc.

arguments
    nameValueArgs.Name {iAssertValidLayerName} = '';
end
nameValueArgs.Name = convertStringsToChars(nameValueArgs.Name);

layer = nnet.cnn.layer.SigmoidLayer(nameValueArgs.Name);

end

function iAssertValidLayerName(name)
nnet.internal.cnn.layer.paramvalidation.validateLayerName(name);
end
