newAgent = setActor(oldAgent,critic)
returns a new reinforcement learning agent, newAgent, that uses the
specified critic representation. Apart from the critic representation, the new agent has the
same configuration as the specified original agent, oldAgent.
Updated reinforcement learning agent, returned as an agent object that uses the
specified critic representation. Apart from the critic representation, the new agent has
the same configuration as oldAgent.