Changeset 757 for trunk/yat


Ignore:
Timestamp:
Feb 19, 2007, 7:51:31 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Fixed #include statemenst and forward declarations. asserts in headers removed.

Location:
trunk/yat
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/DataLookup1D.h

    r747 r757  
    2525*/
    2626
    27 #include <cassert>
    2827#include <iostream>
    29 #include <vector>
    3028
    3129namespace theplu {
  • trunk/yat/classifier/KernelLookup.cc

    r746 r757  
    2626#include "MatrixLookup.h"
    2727#include "MatrixLookupWeighted.h"
     28#include "../utility/matrix.h"
    2829
    2930#include <cassert>
  • trunk/yat/classifier/MatrixLookup.h

    r720 r757  
    2626
    2727#include "DataLookup2D.h"
    28 #include "yat/utility/matrix.h"
    29 
    30 #include <cassert>
     28
     29#include <iostream>
     30#include <vector>
    3131
    3232namespace theplu {
    3333namespace yat {
     34
     35namespace utility {
     36  class matrix;
     37}
     38
    3439namespace classifier { 
    3540
  • trunk/yat/classifier/MatrixLookupWeighted.h

    r746 r757  
    2626
    2727#include "DataLookup2D.h"
    28 #include "yat/utility/matrix.h"
    29 
    30 #include <cassert>
     28
     29#include <iostream>
     30#include <vector>
    3131
    3232namespace theplu {
    3333namespace yat {
     34
     35namespace utility {
     36  class matrix;
     37}
     38
    3439namespace classifier { 
    3540
  • trunk/yat/classifier/SVindex.h

    r714 r757  
    2525*/
    2626
    27 #include "yat/utility/vector.h"
    28 
    29 #include <cassert>
    3027#include <vector>
    3128
    3229namespace theplu {
    3330namespace yat {
     31
     32namespace utility {
     33  class vector;
     34}
     35
    3436namespace classifier { 
    3537
  • trunk/yat/classifier/Target.h

    r745 r757  
    2727#include "yat/utility/Exception.h"
    2828
    29 #include <cassert>
    3029#include <iosfwd>
    3130#include <map>
     31#include <stdexcept>
    3232#include <string>
    3333#include <vector>
  • trunk/yat/regression/PolynomialWeighted.h

    r742 r757  
    2828#include "MultiDimensionalWeighted.h"
    2929#include "yat/utility/vector.h"
    30 
    31 #include <cassert>
    3230
    3331namespace theplu {
  • trunk/yat/statistics/AveragerPair.h

    r720 r757  
    2727#include "Averager.h"
    2828
    29 #include <cassert>
    3029#include <cmath>
    3130#include <utility>
     
    166165  void AveragerPair::add_values(const T1& x, const T2& y)
    167166  {
    168     assert(x.size()==y.size());
    169167    for (size_t i=0; i<x.size(); i++)
    170168      add(x[i],y[i]);
  • trunk/yat/statistics/AveragerWeighted.h

    r756 r757  
    2727#include "Averager.h"
    2828
    29 #include <cassert>
    3029#include <cmath>
    3130
     
    222221  void AveragerWeighted::add_values(const T1& x, const T2& w)
    223222  {
    224     assert(x.size()==w.size());
    225223    for (size_t i=0; i<x.size(); i++)
    226224      add(x[i],w[i]);
  • trunk/yat/statistics/Score.h

    r747 r757  
    2424  02111-1307, USA.
    2525*/
    26 
    27 #include <cassert>
    2826
    2927namespace theplu {
  • trunk/yat/statistics/utility.h

    r718 r757  
    2828
    2929#include <algorithm>
    30 #include <cassert>
    3130#include <cmath>
    3231#include <vector>
     
    135134                    const bool sorted=false)
    136135  {
    137     assert(!(p>100 && p<0));
    138136    if (sorted){
    139137      if (p>=100)
Note: See TracChangeset for help on using the changeset viewer.