openModeller  Version 1.5.0
Occurrences.hh File Reference
Include dependency graph for Occurrences.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OccurrencesImpl
 

Typedefs

typedef
ReferenceCountedPointer
< OccurrencesImpl
OccurrencesPtr
 
typedef
ReferenceCountedPointer< const
OccurrencesImpl
ConstOccurrencesPtr
 
typedef std::vector< ScalarScalarVector
 

Functions

dllexp void splitOccurrences (const OccurrencesPtr &occurrences, OccurrencesPtr &trainOccurrences, OccurrencesPtr &testOccurrences, double propTrain)
 
dllexp void splitOccurrences (const OccurrencesPtr &occurrences, OccurrencesPtr &trainOccurrences, OccurrencesPtr &testOccurrences)
 

Typedef Documentation

Definition at line 49 of file Occurrences.hh.

typedef std::vector<Scalar> ScalarVector

Definition at line 51 of file Occurrences.hh.

Function Documentation

dllexp void splitOccurrences ( const OccurrencesPtr occurrences,
OccurrencesPtr trainOccurrences,
OccurrencesPtr testOccurrences,
double  propTrain 
)

Splits data points into to 2 new subsets

Parameters
origOriginal occurrences to split
trainTrain occurrences to be returned
testTest occurrences to be returned
propTrainPercentage of points to go to train occurrences

Definition at line 478 of file Occurrences.cpp.

References initRandom().

Referenced by NicheMosaic::iterate(), main(), and splitSampler().

Here is the call graph for this function:

dllexp void splitOccurrences ( const OccurrencesPtr occurrences,
OccurrencesPtr trainOccurrences,
OccurrencesPtr testOccurrences 
)

Splits data points into to 2 new subsets

Parameters
origOriginal occurrences to split
trainTrain occurrences to be returned
testTest occurrences to be returned

Definition at line 529 of file Occurrences.cpp.