openModeller  Version 1.5.0
Occurrences.cpp File Reference
#include <openmodeller/Occurrences.hh>
#include <openmodeller/Occurrence.hh>
#include <openmodeller/Random.hh>
#include <openmodeller/Log.hh>
#include <openmodeller/env_io/GeoTransform.hh>
#include <openmodeller/Configuration.hh>
#include <openmodeller/Exceptions.hh>
#include <openmodeller/os_specific.hh>
#include <string>
#include <sstream>
#include <algorithm>
#include <math.h>
Include dependency graph for Occurrences.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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:

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.