#include <dataset.h>
Collaboration diagram for dataset:

Public Types | |
| typedef Tx | x_type | 
| typedef Ty | y_type | 
Public Member Functions | |
| dataset () | |
| dataset & | operator+= (const dataset &ds) | 
| Combine two data sets.   | |
| void | append (const Tx &_x, const Ty &_y) | 
| void | replace (UINT i, const Tx &_x, const Ty &_y) | 
| UINT | size () const | 
| bool | empty () const | 
| void | clear () | 
| const Tx & | x (UINT i) const | 
| const Ty & | y (UINT i) const | 
| template<typename IIX, typename IIY> | |
| dataset (IIX xb, IIX xe, IIY yb, IIY ye) | |
| template<typename IIX, typename IIY> | |
| void | import (IIX xb, IIX xe, IIY yb, IIY ye) | 
| Import data from other types.   | |
| dataset * | random_sample (UINT n) const | 
| Generate a randomly sampled copy of the data set.   | |
| template<typename W> | |
| dataset * | random_sample (const W &wgt, UINT n) const | 
| Tx | Type of input x. | |
| Ty | Type of output y. | 
Member functions:
Definition at line 36 of file dataset.h.
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||||||||||
| 
 
  | 
  
      
  | 
  ||||||||||||
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Import data from other types. 
 
 To import data from two vectors vx and vy, use  import(vx.begin(), vx.end(), vy.begin(), vy.end()); 
 import(px, px+n, py, py+n); 
 | 
  
      
  | 
  
| 
 Combine two data sets. 
 
 
 Definition at line 148 of file dataset.h. References dataset::d.  | 
  
      
  | 
  ||||||||||||
| 
 Generate a randomly sampled copy of the data set. 
 
 
 
 Definition at line 113 of file dataset.h. References dataset::d, EPSILON, and randu.  | 
  
      
  | 
  
| 
 Generate a randomly sampled copy of the data set. 
 
 
 Definition at line 93 of file dataset.h. References dataset::d, and randu.  | 
  
      
  | 
  ||||||||||||||||
| 
 
 Definition at line 163 of file dataset.h. Referenced by DataFeeder::linear_scale().  | 
  
      
  | 
  
| 
 
 Definition at line 53 of file dataset.h. Referenced by LearnModel::exact_dimensions(), DataFeeder::linear_scale(), lemga::load_data(), DataFeeder::mean_var(), and DataFeeder::min_max().  | 
  
      
  | 
  
| 
 
 Definition at line 56 of file dataset.h. Referenced by LearnModel::exact_dimensions(), DataFeeder::linear_scale(), DataFeeder::mean_var(), DataFeeder::min_max(), and LearnModel::set_dimensions().  | 
  
      
  | 
  
| 
 
 Definition at line 57 of file dataset.h. Referenced by LearnModel::exact_dimensions(), DataFeeder::linear_scale(), and LearnModel::set_dimensions().  | 
  
 1.4.6