Changeset 19 for bdm/stat/libDS.cpp
- Timestamp:
- 02/16/08 15:12:24 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libDS.cpp
r18 r19 2 2 #include "libDS.h" 3 3 4 using namespace itpp;4 //using namespace itpp; 5 5 6 6 void MemDS::getdata(vec &dt){ 7 int i; 8 7 9 it_assert_debug(dt.length()==rowid.length(), "MemDS:getdata incompatible dt"); 8 10 for(i=0;i<rowid.length();i++){ … … 12 14 13 15 void MemDS::getdata(vec &dt,ivec &indeces){ 14 int j ;16 int j,i; 15 17 it_assert_debug(dt.length()==indeces.length(), "MemDS:getdata incompatible dt"); 16 18 for(i=0;i<indeces.length();i++){ … … 32 34 } 33 35 34 MemDS::MemDS( vec&Dat, ivec &rowid, ivec &delays){35 it_assert_debug(max(rowid)<=Dat.rows ,"MemDS rowid is too high for given Dat.")36 it_assert_debug(max(delays)<Dat.cols ,"MemDS delays are too high.")36 MemDS::MemDS(mat &Dat, ivec &rowid, ivec &delays){ 37 it_assert_debug(max(rowid)<=Dat.rows(),"MemDS rowid is too high for given Dat."); 38 it_assert_debug(max(delays)<Dat.cols(),"MemDS delays are too high."); 37 39 38 time = max(delay es);40 time = max(delays); 39 41 Data = Dat; 40 42 }