%% Create Scaling Layer
% Create a scaling layer that converts an input array U to the output array Y = 0.1.*U - 0.4.

sLayer = scalingLayer('Scale',0.1,'Bias',-0.4)

%
% Confirm that the scaling layer scales and offsets an input array as expected.

predict(sLayer,[10,20,30])

%
% You can incorporate sLayer into an actor network or critic network for reinforcement learning.
%
% Copyright 2018 The MathWorks, Inc.