Exemplo n.º 1
0
void start()
{
  
  enable_393();
  enable_161();
  start_c();
  soft_stop =0; //it's really starting, eventhough HW is not really start!
   //while(is_stop()); //it will start in some time

}
Exemplo n.º 2
0
void BuyerParser::getAdCampaign(std::vector<std::vector<float> >& v) {
  v.clear();
  Cell start_c('c',41);

  for( int b=0; b<N_BRANDS; b++ ) {
    v.push_back(std::vector<float>(N_TIME_INTERVALS));
    Cell c = Cell(start_c.first + b, start_c.second);

    for( int t=0; t<N_TIME_INTERVALS; t++ ) {
      v[b][t] = std::atof( getCell(c).c_str() );
      c.second++;
    }
  }
}
Exemplo n.º 3
0
void BuyerParser::getWeakTiesPreferences(std::vector<std::vector<float> >& ties,
					 size_t ties_count) {
  ties.clear();
  Cell start_c('c', 54);

  for( int k=0; k<ties_count; k++ ) {
    ties.push_back(std::vector<float>(N_BRANDS));
    Cell c = Cell(start_c.first, start_c.second+k);
  
    for( int b=0; b<N_BRANDS; b++ ) {
      ties[k][b] = std::atof( getCell(c).c_str() );
      c.first++;
    }
  }
}