public static SARS MakeSARS(this QAgent agent, QAction move, QState state) { move.Invoke(); var s0 = agent.GetState(); return(new SARS(state, move, s0)); }
public bool Equals(QState other) { var img = Features.Spatial; var oimg = other.Features.Spatial; return(IsTerminal == other.IsTerminal && Reward == other.Reward && ((img == oimg) || (img != null && oimg != null && img.SequenceEqual(oimg))) && (Features.Linear != null && other.Features.Linear != null && Features.Linear.Equals(other.Features.Linear))); }