STK++ 0.9.13
STK::hidden::CsvToArrayImpl< Type, Array2D< Type > > Struct Template Reference

#include <STK_CsvToArray.h>

Static Public Member Functions

static void run (TReadWriteCsv< Type > const &rw, Array2D< Type > *p_data, Real const propMiss)
 

Detailed Description

template<class Type>
struct STK::hidden::CsvToArrayImpl< Type, Array2D< Type > >

Definition at line 77 of file STK_CsvToArray.h.

Member Function Documentation

◆ run()

template<class Type >
static void STK::hidden::CsvToArrayImpl< Type, Array2D< Type > >::run ( TReadWriteCsv< Type > const rw,
Array2D< Type > *  p_data,
Real const  propMiss 
)
inlinestatic

Definition at line 79 of file STK_CsvToArray.h.

80 {
81 p_data->reserveCols(rw.size());
82 for(int jVar = rw.begin(); jVar<rw.end(); jVar++)
83 {
84 if ( (rw.var(jVar).nbMiss()/Real(rw.var(jVar).size())) <= propMiss)
85 p_data->merge(rw.var(jVar));
86 }
87 }
double Real
STK fundamental type of Real values.

The documentation for this struct was generated from the following file: