MDP constructor

MDP({
  1. required int nStates,
  2. required int nActions,
  3. required List<List<List<double>>> P,
  4. required List<List<List<double>>> R,
})

Implementation

MDP({
  required this.nStates,
  required this.nActions,
  required this.P,
  required this.R,
}) {
  if (P.length != nStates) throw ArgumentError('P shape mismatch');
  if (R.length != nStates) throw ArgumentError('R shape mismatch');
}