14#include "lang/ytObject.h"
16#include "ytIntArray.h"
17#include "ytStrArray.h"
18#include "ytKeyValues.h"
20#include "math/ytRNG.h"
23#define ytData_TYPE_REAL 0
24#define ytData_TYPE_ORDINAL 1
25#define ytData_TYPE_CATEGORICAL 2
26#define ytData_TYPE_DISCRETE 3
102void ytData_delete(
ytData *
this);
104const char * ytData_typeName(
int type);
105void ytData_summary(
const ytData * data, FILE * fp);
106void ytData_varSummary(
const ytData * data, FILE * fp);
107void ytData_stat(
const ytData *
this, FILE * fp,
int level);
108int ytData_getType(
const ytData *
this,
int j);
109const char * ytData_getTypeName(
const ytData *
this,
int j);
110int ytData_parseType(
const char * name);
111const char * ytData_getName(
const ytData *
this,
int j);
112int ytData_findName(
const ytData *
this,
const char * name);
113int ytData_numSamples(
const ytData *
this);
114int ytData_numVariables(
const ytData *
this);
116void ytData_dynamic(
ytData *
this);
118void ytData_print(
ytData *
this, FILE * fp);
121ytArray * ytData_readPrimaryIDList(
const ytData *
this,
const char * file);
129void ytData_varInfo(
const ytData *
this,
int j, FILE * fp);
131void ytData_convertAllToReal(
ytData *
this);
132void ytData_splitXY(
ytData *
this);
134void ytData_dump(
const ytData *
this, FILE * fp);
135int ytData_countNAN(
const ytData *
this);
136int ytData_debug(
int argc,
char * argv[]);
139void ytData_MPI_Bcast(
ytData ** data,
int root, MPI_Comm comm);
General data container.
Definition ytData.h:46
int p
The number of variables.
Definition ytData.h:53
double * X
n x p explanatory data matrix.
Definition ytData.h:64
ytKeyValues * varAttrs
attributes for variables.
Definition ytData.h:88
ytIntArray * types
Value types of the variables. The j-th element represents the type ID of the j-th variable....
Definition ytData.h:80
int n
The number of samples.
Definition ytData.h:50
double * Y
n x p target data matrix.
Definition ytData.h:71
ytStrArray * names
Names of variables.
Definition ytData.h:74
ytArray * dict
dictionary for categories. The elements are ytStrArray instances, and the j-th element corresponds to...
Definition ytData.h:94
ytKeyValues * meta
meta data
Definition ytData.h:97
ytKeyValues * sampleAttrs
attributes for samples. The value associated with the key is an array. The type of the array depends ...
Definition ytData.h:85
Structure for encapsulating the random number generator.
Definition ytRNG.h:33