<commit_before>/********** tell emacs we use -*- c++ -*- style comments *******************
 * $Revision: 1.1 $  $Author: trey $  $Date: 2004-11-13 23:29:44 $
 *  
 * @file    PomdpM.h
 * @brief   No brief
 ***************************************************************************/

#ifndef INCPomdpM_h
#define INCPomdpM_h

// this causes problems if it is included after the Lapack headers, so
//  pre-emptively include it here.  not sure exactly what the problem is.
#include <iostream>

#include <string>
#include <vector>

#include "commonDefs.h"
#include "commonTypes.h"
#include "SmartRef.h"

// this is a wrapper class around Pomdp that uses Lapack matrices
class PomdpM {
public:
  int numStates, numActions, numObservations;
  double discount;
  // initialBelief(s)

  belief_vector initialBelief;
  // R(s,a)
  bmatrix R;
  // T[a](s,s'), O[a](s,o)
  std::vector<bmatrix> T, O;
  std::vector<bmatrix> Ttr, Otr;

  std::vector<bool> isTerminalState;

  void readFromFile(const std::string& fileName);
};

typedef SmartRef<PomdpM> PomdpP;

#endif // INCPomdpM_h

/***************************************************************************
 * REVISION HISTORY:
 * $Log: not supported by cvs2svn $
 * Revision 1.2  2004/11/09 21:31:59  trey
 * got pomdp source tree into a building state again
 *
 * Revision 1.1.1.1  2004/11/09 16:18:56  trey
 * imported hsvi into new repository
 *
 * Revision 1.5  2003/09/16 00:57:02  trey
 * lots of performance tuning, mostly fixed rising upper bound problem
 *
 * Revision 1.4  2003/09/11 01:46:42  trey
 * completed conversion to compressed matrices
 *
 * Revision 1.3  2003/09/07 02:28:07  trey<commit_msg>switched PomdpP to be a pointer, not a SmartRef<commit_after>/********** tell emacs we use -*- c++ -*- style comments *******************
 * $Revision: 1.2 $  $Author: trey $  $Date: 2004-11-24 20:50:16 $
 *  
 * @file    PomdpM.h
 * @brief   No brief
 ***************************************************************************/

#ifndef INCPomdpM_h
#define INCPomdpM_h

// this causes problems if it is included after the Lapack headers, so
//  pre-emptively include it here.  not sure exactly what the problem is.
#include <iostream>

#include <string>
#include <vector>

#include "commonDefs.h"
#include "commonTypes.h"
#include "SmartRef.h"

// this is a wrapper class around Pomdp that uses Lapack matrices
class PomdpM {
public:
  int numStates, numActions, numObservations;
  double discount;
  // initialBelief(s)

  belief_vector initialBelief;
  // R(s,a)
  bmatrix R;
  // T[a](s,s'), O[a](s,o)
  std::vector<bmatrix> T, O;
  std::vector<bmatrix> Ttr, Otr;

  std::vector<bool> isTerminalState;

  void readFromFile(const std::string& fileName);
};

//typedef SmartRef<PomdpM> PomdpP;
typedef PomdpM* PomdpP;

#endif // INCPomdpM_h

/***************************************************************************
 * REVISION HISTORY:
 * $Log: not supported by cvs2svn $
 * Revision 1.1  2004/11/13 23:29:44  trey
 * moved many files from hsvi to common
 *
 * Revision 1.2  2004/11/09 21:31:59  trey
 * got pomdp source tree into a building state again
 *
 * Revision 1.1.1.1  2004/11/09 16:18:56  trey
 * imported hsvi into new repository
 *
 * Revision 1.5  2003/09/16 00:57:02  trey
 * lots of performance tuning, mostly fixed rising upper bound problem
 *
 * Revision 1.4  2003/09/11 01:46:42  trey
 * completed conversion to compressed matrices
 *
 * Revision 1.3  2003/09/07 02:28:07  trey
{'fraction_non_alphanumeric': 0.20953757225433525, 'fraction_numerical': 0.061849710982658956, 'mean_word_length': 4.067349926793558, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '296780', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1157, 'n_words': 352}