Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/dataconverter.h
[mareframe] / trunk / paramin-beta / dataconverter.h Repository:
ViewVC logotype

View of /trunk/paramin-beta/dataconverter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 4 months ago) by agomez
File size: 787 byte(s)
Initial version based on Gadget 2.2.00
#ifndef dataconverter_h
#define dataconverter_h

#include "paramin.h"
#include "intvector.h"
#include "doublevector.h"

/**
 *
 * \brief class DataConverter makes a new vector from a given vector v[0..numVar-1], using the formula:
 *   xNew[i] = xfullraw[i] if xind[i] = 0 else xNew[i] = v[j].
 *   0 <= i < numVarTotal. 0 <= j < numVar. 
 */

class DataConverter {
private:
  /**
   * \brief initial values for vector
   */
  DoubleVector xfullraw;
  DoubleVector xConverted;
  IntVector xind;
  int numVarTotal;
public:
  DataConverter();
  ~DataConverter();
  void setInitialData(const IntVector& xi, const DoubleVector& xr);
  const DoubleVector& getXFull();
  int getNumVarTotal();
  const DoubleVector& convertX(const DoubleVector& v1);
  const IntVector& getOptInfo();
};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge