|
static Db * | Db::create () |
|
static Db * | Db::createFromNF (const String &neutralFilename, bool verbose=true) |
|
static Db * | Db::createFromSamples (int nech, const ELoadBy &order=ELoadBy::fromKey("SAMPLE"), const VectorDouble &tab=VectorDouble(), const VectorString &names=VectorString(), const VectorString &locatorNames=VectorString(), bool flagAddSampleRank=true) |
|
static Db * | Db::createFromCSV (const String &filename, const CSVformat &csv=CSVformat(), bool verbose=false, int ncol_max=-1, int nrow_max=-1, bool flagAddSampleRank=true) |
|
static Db * | Db::createFromBox (int nech, const VectorDouble &coormin, const VectorDouble &coormax, int seed=43241, bool flag_exact=true, bool flag_repulsion=false, double range=0., double beta=0., double extend=0., bool flagAddSampleRank=true) |
|
static Db * | Db::createFromOnePoint (const VectorDouble &tab=VectorDouble(), bool flagAddSampleRank=true) |
|
static Db * | Db::createSamplingDb (const Db *dbin, double proportion=0., int number=0, const VectorString &names=VectorString(), int seed=23241, bool verbose=false, bool flagAddSampleRank=true) |
|
static Db * | Db::createFromDbGrid (int nech, DbGrid *dbgrid, int seed=432423, bool flag_exact=true, bool flag_repulsion=false, double range=0., double beta=0., bool flagAddSampleRank=true) |
|
static Db * | Db::createReduce (const Db *dbin, const VectorString &names=VectorString(), const VectorInt &ranks=VectorInt(), bool verbose=false) |
|
static Db * | Db::createFillRandom (int ndat, int ndim=2, int nvar=1, int nfex=0, int ncode=0, double varmax=0., double selRatio=0., const VectorDouble &heteroRatio=VectorDouble(), const VectorDouble &coormin=VectorDouble(), const VectorDouble &coormax=VectorDouble(), int seed=124234, bool flagAddSampleRank=true) |
|
All methods enabling to Create a new Db in various conditions.
They all return a pointer to the newly created Db structure.
◆ create()
◆ createFillRandom()
Db * Db::createFillRandom |
( |
int |
ndat, |
|
|
int |
ndim = 2 , |
|
|
int |
nvar = 1 , |
|
|
int |
nfex = 0 , |
|
|
int |
ncode = 0 , |
|
|
double |
varmax = 0. , |
|
|
double |
selRatio = 0. , |
|
|
const VectorDouble & |
heteroRatio = VectorDouble() , |
|
|
const VectorDouble & |
coormin = VectorDouble() , |
|
|
const VectorDouble & |
coormax = VectorDouble() , |
|
|
int |
seed = 124234 , |
|
|
bool |
flagAddSampleRank = true |
|
) |
| |
|
static |
Creating a new Db loaded with random values
- Parameters
-
ndat | Number of samples |
ndim | Dimension of the space |
nvar | Number of variables |
nfex | Number of external drift functions |
ncode | Number of codes (no code when 0) |
varmax | Maximum value for the measurement error |
selRatio | Percentage of samples that must be masked off |
heteroRatio | Vector of proportions of NA to be generated per variable |
coormin | Vector of minima of the rectangle containing data (0s if not defined) |
coormax | Vector of maxima of the rectangle containing data (1s if not defined) |
seed | Value for the Random Generator seed |
flagAddSampleRank | true if the sample rank must be generated |
- Returns
- A pointer to the newly created Db
◆ createFromBox()
Db * Db::createFromBox |
( |
int |
nech, |
|
|
const VectorDouble & |
coormin, |
|
|
const VectorDouble & |
coormax, |
|
|
int |
seed = 43241 , |
|
|
bool |
flag_exact = true , |
|
|
bool |
flag_repulsion = false , |
|
|
double |
range = 0. , |
|
|
double |
beta = 0. , |
|
|
double |
extend = 0. , |
|
|
bool |
flagAddSampleRank = true |
|
) |
| |
|
static |
◆ createFromCSV()
Db * Db::createFromCSV |
( |
const String & |
filename, |
|
|
const CSVformat & |
csv = CSVformat() , |
|
|
bool |
verbose = false , |
|
|
int |
ncol_max = -1 , |
|
|
int |
nrow_max = -1 , |
|
|
bool |
flagAddSampleRank = true |
|
) |
| |
|
static |
◆ createFromDbGrid()
Db * Db::createFromDbGrid |
( |
int |
nech, |
|
|
DbGrid * |
dbgrid, |
|
|
int |
seed = 432423 , |
|
|
bool |
flag_exact = true , |
|
|
bool |
flag_repulsion = false , |
|
|
double |
range = 0. , |
|
|
double |
beta = 0. , |
|
|
bool |
flagAddSampleRank = true |
|
) |
| |
|
static |
Create a new Data Base with points generated at random
- Returns
- Pointer for the new Db structure
- Parameters
-
[in] | nech | Expected number of samples |
[in] | dbgrid | Descriptor of the Db grid parameters |
[in] | seed | Seed for the random number generator |
[in] | flag_exact | True if the number of samples must not be drawn |
[in] | flag_repulsion | True if repulsion is processed |
[in] | range | Repulsion range |
[in] | beta | Bending coefficient |
[in] | flagAddSampleRank | true if the Rank must be generated in the output Db |
◆ createFromNF()
Db * Db::createFromNF |
( |
const String & |
neutralFilename, |
|
|
bool |
verbose = true |
|
) |
| |
|
static |
◆ createFromOnePoint()
◆ createFromSamples()
◆ createReduce()
◆ createSamplingDb()
Db * Db::createSamplingDb |
( |
const Db * |
dbin, |
|
|
double |
proportion = 0. , |
|
|
int |
number = 0 , |
|
|
const VectorString & |
names = VectorString() , |
|
|
int |
seed = 23241 , |
|
|
bool |
verbose = false , |
|
|
bool |
flagAddSampleRank = true |
|
) |
| |
|
static |