openModeller
Version 1.4.0
|
#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>
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) |
void splitOccurrences | ( | const OccurrencesPtr & | occurrences, |
OccurrencesPtr & | trainOccurrences, | ||
OccurrencesPtr & | testOccurrences, | ||
double | propTrain | ||
) |
Splits data points into to 2 new subsets
orig | Original occurrences to split |
train | Train occurrences to be returned |
test | Test occurrences to be returned |
propTrain | Percentage of points to go to train occurrences |
Definition at line 478 of file Occurrences.cpp.
References initRandom().
Referenced by NicheMosaic::iterate(), main(), and splitSampler().
void splitOccurrences | ( | const OccurrencesPtr & | occurrences, |
OccurrencesPtr & | trainOccurrences, | ||
OccurrencesPtr & | testOccurrences | ||
) |
Splits data points into to 2 new subsets
orig | Original occurrences to split |
train | Train occurrences to be returned |
test | Test occurrences to be returned |
Definition at line 529 of file Occurrences.cpp.