Cosan  1.0
Data Analytics Library
OverUnderFlowTest.cpp File Reference
#include <iostream>
#include <Eigen/Dense>
#include <Eigen/Core>
#include <cosan/data/CosanData.h>
#include <gsl/gsl>
#include <cosan/preprocessing/overunderflow.h>
#include <vector>

Go to the source code of this file.

Typedefs

typedef double NumericType
 

Functions

int main ()
 

Typedef Documentation

◆ NumericType

typedef double NumericType

Definition at line 16 of file OverUnderFlowTest.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 17 of file OverUnderFlowTest.cpp.

17  {
18 
19  Cosan::CosanRawData<NumericType> CRD("./example_data/toy2/X_.csv","./example_data/toy2/Y_.csv");
20 // std::cout<<CRD.GetSummaryMessageX()<<CRD.GetSummaryMessageY()<<std::endl;
21  Cosan::OverUnderFlow ouf(CRD);
22 
23  myarray = myarray.unaryExpr([](double v) { return std::isfinite(v)? v : 0.0; });
24 
25  std::cout<<(1-CRD.GetTarget().array().isNaN()).cast<double>().array()*CRD.GetTarget().array()<<std::endl;
26  int a = 1;
27 
28  std::string cout;
29  cout =(a==1 ? "Hello!":"I am doing good!") ;
30  std::cout<<CRD.GetTarget().size() <<std::endl;
31  // std::vector<std::vector<gsl::index>> a({{1,2},{2,3},{3,4},{4,5},{5,6},{6,7},{7,8},{8,9},{9,10},{10,11}});
32  // std::vector<std::vector<gsl::index>> b;
33  // select(b, a, {3,4,7,9});
34  // // std::transform(a.begin(),a.end(),b.begin(),[]()->bool {});
35  // std::cout<<b.size()<<std::endl;
36  // for (auto each: b){
37  // std::cout<<each[0]<<each[1]<<std::endl;
38  // }
39 
40  // gsl::index c=11,d=5;
41  // std::cout<<c/d<<std::endl;
42 
43 
44 
45  return 0;
46 //
47 // m.transposeInPlace();
48 // cout<<m<<endl;
49 // m.resize(1,4);
50 // cout<<n<<endl;
51 }
Cosan::OverUnderFlow
Definition: overunderflow.h:14
Cosan::CosanRawData
Raw Data container.
Definition: CosanData.h:36